X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fopt%2Fhelpers.c;h=25929bd5bf705f6681a1c7303288a58a16d4453c;hb=5d628b63760d38f7d5094141d019f4ab83546690;hp=e7ab273cdcede67a9bec9ae868ec8d8faa84cd6b;hpb=fba46ae074025cb605d46be9b1080e0649635dd6;p=ccan diff --git a/ccan/opt/helpers.c b/ccan/opt/helpers.c index e7ab273c..25929bd5 100644 --- a/ccan/opt/helpers.c +++ b/ccan/opt/helpers.c @@ -134,7 +134,7 @@ char *opt_usage_and_exit(const char *extra) char *usage = opt_usage(opt_argv0, extra); printf("%s", usage); /* Don't have valgrind complain! */ - free(usage); + opt_alloc.free(usage); opt_free_table(); exit(0); }