app/testpmd: fix memory leak on error path
authorYunjian Wang <wangyunjian@huawei.com>
Mon, 25 May 2020 01:46:23 +0000 (09:46 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 28 May 2020 15:57:07 +0000 (17:57 +0200)
commiteb577e575d160eae08bcd9b7acf8a9d8fe795f89
tree4264321d6db8e2102ec5d56f6f20887b5cf52e5a
parent3c9be81be917e1659a3a9ab332c277280986ed03
app/testpmd: fix memory leak on error path

This patch fixes the resource leak issue.

Fixes: e63b50162aa3 ("app/testpmd: clean metering and policing commands")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/cmdline_mtr.c