cmdline: free on exit
authorZhihong Peng <zhihongx.peng@intel.com>
Mon, 18 Oct 2021 13:58:50 +0000 (21:58 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 22 Oct 2021 21:32:00 +0000 (23:32 +0200)
commit6ad06203a587a8ce10392d9224e9fbdcb77b3d5c
tree80ce3e896efdf1276fe89e5a95ddc4d8733bd035
parentf8f8dc289095ebecff2695efd1350ca6c4dede84
cmdline: free on exit

Malloc cl in the cmdline_stdin_new function, so release in the
cmdline_stdin_exit function is logical, so that cl will not be
released alone.

Fixes: af75078fece3 ("first public release")

Signed-off-by: Zhihong Peng <zhihongx.peng@intel.com>
Reviewed-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
Tested-by: Zhihong Peng <zhihongx.peng@intel.com>
app/test/test.c
app/test/test_cmdline_lib.c
doc/guides/rel_notes/release_21_11.rst
lib/cmdline/cmdline_socket.c