app/procinfo: free xstats memory upon failure
authorReshma Pattan <reshma.pattan@intel.com>
Tue, 4 Oct 2016 16:42:22 +0000 (17:42 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 12 Oct 2016 16:40:50 +0000 (18:40 +0200)
commit4e1c139f79207ef1d67cf680970e801c902ae533
tree557a5f8599de7c6a9b5e3bfb79cc6d8eb4903f66
parent1a0c9cb015b89ba0616f72e706a597805d5b955f
app/procinfo: free xstats memory upon failure

Some of the failures cases inside the nic_xstats_display()
function doesn't free the allocated memory for the xstats and
their names, memory is freed now.

Fixes: e2aae1c1 ("ethdev: remove name from extended statistic fetch")
Fixes: 22561383 ("app: replace dump_cfg by proc_info")

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Remy Horton <remy.horton@intel.com>
app/proc_info/main.c