Anatoly Burakov 198b66b946 mem: fix resource leak
Segment preallocation code allocates an array of structures on the
heap but does not free the memory afterwards. Fix it by freeing it
at the end of the function, and changing control flow to always go
through that code path.

Coverity issue: 323524
Fixes: 1dd342d0fdc4 ("mem: improve segment list preallocation")
Cc: stable@dpdk.org

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
2018-10-23 11:36:48 +02:00
..
2018-10-23 11:36:48 +02:00
2018-10-10 21:40:40 +02:00
2018-10-12 19:33:02 +02:00
2018-09-19 17:11:17 +02:00