app/testpmd: call cleanup on exit
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 7 Jan 2020 18:59:42 +0000 (10:59 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:01 +0000 (19:46 +0100)
commit5e516c89830aacae67968490dbd8c542b9ffc430
tree5b07b79d058de296c7f4578198e8d8fd2a6d674f
parent37c7ed126443e470e6994cc6f50898c740ceb097
app/testpmd: call cleanup on exit

The rte_eal_cleanup code is not exercised by testpmd which
is the most used DPDK test tool. Add a call at end of program.

This helps exercise free and close paths which can
be checked with tools like valgrind.

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
app/test-pmd/testpmd.c