mem: fix hugepage resource leak
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Wed, 6 Jul 2016 10:44:53 +0000 (12:44 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 10 Jul 2016 13:27:39 +0000 (15:27 +0200)
commitf0a1dd3b991714e2910bdcc67426b6c8e4c8cfe5
tree385a761377071fc3b725d2158fe0ac8a8cfcc8fa
parent2641a532ed86f33913ac0379ec6b3fa97a27c137
mem: fix hugepage resource leak

Current code does not munmap 'hugepage' mapping (hugepage info file) on
function exit, leaking resources.

Coverity issue: 97920
Fixes: b6a468ad41d5 ("memory: add --socket-mem option")

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
lib/librte_eal/linuxapp/eal/eal_memory.c