tests/cmdline: fix memory leaks
authorOwen Hilyard <ohilyard@iol.unh.edu>
Wed, 23 Jun 2021 18:06:45 +0000 (14:06 -0400)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 24 Jun 2021 13:34:45 +0000 (15:34 +0200)
commitca7204b921c2f328ab1222772af40922970e7c4b
treed6cd61b70bc48fcd26e534cd38be47254712fd4e
parent03b8372a9a73a6b3dce4ce6b447ea37c398a4685
tests/cmdline: fix memory leaks

Fixes for a few memory leaks in the cmdline_autotest unit test.

All of the leaks were related to not freeing the commandline struct
after testing had completed.

Fixes: dbb860e03eb1 ("cmdline: tests")
Cc: stable@dpdk.org
Signed-off-by: Owen Hilyard <ohilyard@iol.unh.edu>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
app/test/test_cmdline_lib.c