]> git.ozlabs.org Git - ccan/blobdiff - ccan/opt/test/run-correct-reporting.c
opt: fix memory leak in tests.
[ccan] / ccan / opt / test / run-correct-reporting.c
index 4f775a29c47fb0fa819417a0690c01a294034cd9..8534f291ac3e9accfeafb0685fc61286b6adf4b6 100644 (file)
@@ -42,6 +42,8 @@ int main(int argc, char *argv[])
        free(err_output);
        err_output = NULL;
 
+       /* parse_args allocates argv */
+       free(argv);
        return exit_status();
 }