]> git.ozlabs.org Git - ccan/commit - tools/configurator/configurator.c
configurator: avoid leaks that LeakSanitizer doesn't like
authorCody P Schafer <dev@codyps.com>
Sun, 16 Aug 2015 22:54:37 +0000 (18:54 -0400)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 17 Aug 2015 02:29:43 +0000 (11:59 +0930)
commitd88372302ac7d1b5e6d6def90df16c3b9fcd8a4f
tree3adb4f9dcfd4bd71c58a6617f966289e52d1a546
parent284b3e6d2db0a20d16a7f82f5b1981712b2fd2df
configurator: avoid leaks that LeakSanitizer doesn't like

These leaks aren't really an issue since they are completely bounded,
but if one is building with leak sanitizer enabled (as
-fsanitize=address does in gcc-5.1), it kills the configurator, which
isn't very useful for us. Add the few free() calls it's looking for.

This is not an actual code issue, they just workaround
some optional compiler peculiarities.

Signed-off-by: Cody P Schafer <dev@codyps.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (split off leak change)
tools/configurator/configurator.c