test/cmdline: fix memory leak

Previous change wrongly removed cmdline_free().

Fixes: 6ad06203a5 ("cmdline: free on exit")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
This commit is contained in:
David Marchand 2021-10-29 13:23:15 +02:00
parent 239fffe040
commit 86e361cdeb

View File

@ -176,6 +176,8 @@ test_cmdline_socket_fns(void)
printf("Error: failed to open /dev/null for reading!");
return -1;
}
cmdline_free(cl);
cl = NULL;
/* void functions */
cmdline_stdin_exit(NULL);