graph: fix memory leak in stats
authorHongbo Zheng <zhenghongbo3@huawei.com>
Thu, 6 May 2021 07:16:26 +0000 (15:16 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 3 Jun 2021 16:35:47 +0000 (18:35 +0200)
commit3b47572fbe783ced8264bc7de459121e201c5bef
tree2fccff360838deb51b0d44d3688de1ad172531ea
parentee00af60170b1ce35298e1554f7655f69af2c043
graph: fix memory leak in stats

Fix function 'stats_mem_populate' return without
free dynamic memory referenced by 'stats'.

Fixes: af1ae8b6a32c ("graph: implement stats")
Cc: stable@dpdk.org
Signed-off-by: Hongbo Zheng <zhenghongbo3@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/graph/graph_stats.c