From 86e361cdeb495c70a154f25cd47fd6581c9aff89 Mon Sep 17 00:00:00 2001 From: David Marchand Date: Fri, 29 Oct 2021 13:23:15 +0200 Subject: [PATCH] test/cmdline: fix memory leak Previous change wrongly removed cmdline_free(). Fixes: 6ad06203a587 ("cmdline: free on exit") Signed-off-by: David Marchand Acked-by: Olivier Matz --- app/test/test_cmdline_lib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test/test_cmdline_lib.c b/app/test/test_cmdline_lib.c index f238094b07..f50ccdb599 100644 --- a/app/test/test_cmdline_lib.c +++ b/app/test/test_cmdline_lib.c @@ -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); -- 2.39.5