app/testpmd: fix memory leak on detach
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 20 Nov 2019 23:26:28 +0000 (15:26 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 26 Nov 2019 17:05:15 +0000 (18:05 +0100)
commit149677c9a3daddce5f849a991bae5b41010d0c17
tree4db90c1b1a541846b6969d4f3ed8dbd6de55e99f
parenta57fdc78b68dd8e09de02596945f4dd3399f1814
app/testpmd: fix memory leak on detach

The RTE_FOREACH_MATCHING_DEV iterator requires that
if a break is done before the end of the loop,
the function rte_eth_iterator_cleanup() must be called.

Fixes: 55e51c962432 ("app/testpmd: add device related commands")
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