bus/ifpga: fix memory leaks in scan
authorRosen Xu <rosen.xu@intel.com>
Tue, 22 May 2018 10:26:17 +0000 (18:26 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 22 May 2018 17:16:25 +0000 (19:16 +0200)
commit089818197459a899dbddc46c689a6fe53ecd5563
tree6462b01a66ef034a0f387b581c21bb303683ef82
parent07b4a8be61e9f0e2af2d15685ddf2f9eb5ba162e
bus/ifpga: fix memory leaks in scan

There are some resource leaks in ifpga_scan_one.
This patch fixes it.

Coverity issue: 279459
Fixes: 05fa3d4a6539 ("bus/ifpga: add Intel FPGA bus library")
Cc: stable@dpdk.org
Signed-off-by: Rosen Xu <rosen.xu@intel.com>
drivers/bus/ifpga/ifpga_bus.c