app/pdump: cleanup rings upon failures
authorReshma Pattan <reshma.pattan@intel.com>
Fri, 22 Jul 2016 13:44:04 +0000 (14:44 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 22 Jul 2016 15:57:15 +0000 (17:57 +0200)
commit1c4466cb9907cb072852d0f992add6cc5a23443d
tree0368c2e7106f2f1c3d16ceee9c0efbb7c256d434
parent763197ad731e9cfabc7d7399084d41da3d25dce4
app/pdump: cleanup rings upon failures

Function create_mp_ring_vdev() for failure cases exits without
freeing the created rte rings, because of this, pdump tool cannot be
rerun successfully. Added rte ring cleanup logic upon failures.

Fixes: caa7028276b8 ("app/pdump: add tool for packet capturing")

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/pdump/main.c