mem: fix resource leak on map failure
authorAnatoly Burakov <anatoly.burakov@intel.com>
Mon, 16 Apr 2018 14:40:02 +0000 (15:40 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 27 Apr 2018 21:42:40 +0000 (23:42 +0200)
commit5441fcfd874d8d1ac86e38858f61310c63180204
tree6886a3c8c554f470f5aa952a8d39044ea60f5514
parent42c2a6a8199bc84a65cd7eb758772f360db5ed8b
mem: fix resource leak on map failure

Coverity issue: 272601
Fixes: 66cc45e293ed ("mem: replace memseg with memseg lists")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/linuxapp/eal/eal_memory.c