examples/bbdev: fix memory leak in stats print
authorAmr Mokhtar <amr.mokhtar@intel.com>
Wed, 31 Jan 2018 14:30:29 +0000 (14:30 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 31 Jan 2018 17:50:30 +0000 (18:50 +0100)
commit2a5aa6e7a528b16db7da507c975ce3d169d232d4
tree607679c9ad3521de2358d94a7e6d90e57b1ff678
parentbf271db17154b0fcddc7c79edfa7b4e653d6a796
examples/bbdev: fix memory leak in stats print

xstats and xstats_names buffers were allocated for
the purpose of printing eth_xstats, but were not
freed before exit.
A fix is added to free before exit points.

Coverity issue: 257013
Fixes: 1ffee690eaa1 ("examples/bbdev: add sample app")

Signed-off-by: Amr Mokhtar <amr.mokhtar@intel.com>
examples/bbdev_app/main.c