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:
parent
239fffe040
commit
86e361cdeb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user