[v2,2/2] app/test: Delete cmdline free function
Checks
Commit Message
From: Zhihong Peng <zhihongx.peng@intel.com>
Cmdline will be released in cmdline_stdin_exit function,
so it does not need to be released here.
Fixes: acdabc450ea0 (test: fix terminal settings on exit)
Cc: stable@dpdk.org
Signed-off-by: Zhihong Peng <zhihongx.peng@intel.com>
---
app/test/test.c | 1 -
app/test/test_cmdline_lib.c | 1 -
2 files changed, 2 deletions(-)
@@ -233,7 +233,6 @@ main(int argc, char **argv)
cmdline_interact(cl);
cmdline_stdin_exit(cl);
- cmdline_free(cl);
}
#endif
ret = 0;
@@ -174,7 +174,6 @@ test_cmdline_socket_fns(void)
/* void functions */
cmdline_stdin_exit(NULL);
- cmdline_free(cl);
return 0;
error:
printf("Error: function accepted null parameter!\n");