projects
/
ccan
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
various: add LICENSE comments.
[ccan]
/
ccan
/
opt
/
test
/
run-no-options.c
diff --git
a/ccan/opt/test/run-no-options.c
b/ccan/opt/test/run-no-options.c
index 5ae2dd35f1ccb256159462cad98edb16bd36f7f2..cf255fee0aee7c6d4c02d93581c9cdf531a508c9 100644
(file)
--- a/
ccan/opt/test/run-no-options.c
+++ b/
ccan/opt/test/run-no-options.c
@@
-25,6
+25,9
@@
int main(int argc, char *argv[])
ok1(strcmp(argv[1], "extra") == 0);
ok1(strcmp(argv[2], "args") == 0);
+ /* parse_args allocates argv */
+ free(argv);
+
return exit_status();
}