eal: fix memory leak in hugepage error cases
authorZhangkun <zhangk.zhangkun@huawei.com>
Tue, 19 Aug 2014 03:51:11 +0000 (11:51 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 29 Aug 2014 10:38:29 +0000 (12:38 +0200)
commitf20a47ff97da3910529ad4d979d7a6e256cf0a0c
tree0acc370f2b5150c35217b785d20034723e4f228c
parent844083c46a9381f25edacd7357e007aa8a2d29f8
eal: fix memory leak in hugepage error cases

The sysfs directory for hugepages parsing was not closed properly in some
error cases.

Signed-off-by: Zhangkun <zhangk.zhangkun@huawei.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/linuxapp/eal/eal_hugepage_info.c