]> git.ozlabs.org Git - ccan/commit
opt: don't leak on exit (valgrind complains).
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 15 Dec 2011 03:45:47 +0000 (14:15 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 15 Dec 2011 03:45:47 +0000 (14:15 +1030)
commitec822c6589eeaeb3f45c12876db2016be5808688
tree7670e1fb853e9f4750044bfeb47d9659eca57217
parente59b7388d8b2b56dc759be7c2dbf63100d2e131f
opt: don't leak on exit (valgrind complains).

Recent real usage case showed this leak when we call opt_usage_and_exit:
we don't bother freeing before exit.  With valgrind, it matters.
ccan/opt/helpers.c
ccan/opt/test/run-helpers.c