X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fopt%2Ftest%2Frun-correct-reporting.c;fp=ccan%2Fopt%2Ftest%2Frun-correct-reporting.c;h=8534f291ac3e9accfeafb0685fc61286b6adf4b6;hb=6fa62e5ae1e29646aa718e99020fdf2efee74373;hp=4f775a29c47fb0fa819417a0690c01a294034cd9;hpb=e34192d580958aaffff3754a4e2bf1eccbb489f8;p=ccan diff --git a/ccan/opt/test/run-correct-reporting.c b/ccan/opt/test/run-correct-reporting.c index 4f775a29..8534f291 100644 --- a/ccan/opt/test/run-correct-reporting.c +++ b/ccan/opt/test/run-correct-reporting.c @@ -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(); }