[dpdk-dev] [PATCH] tests/test_eal_flags: fix memory leak
ohilyard at iol.unh.edu
ohilyard at iol.unh.edu
Wed Jun 16 18:24:52 CEST 2021
From: Owen Hilyard <ohilyard at iol.unh.edu>
The directory steam was not closed when the hugepage action was
HUGEPAGE_CHECK_EXISTS. This caused a memory leak in some parts of
the unit tests.
Signed-off-by: Owen Hilyard <ohilyard at iol.unh.edu>
---
app/test/test_eal_flags.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c
index 932fbe3d0..0c1e0fb21 100644
--- a/app/test/test_eal_flags.c
+++ b/app/test/test_eal_flags.c
@@ -125,6 +125,7 @@ process_hugefiles(const char * prefix, enum hugepage_action action)
{
/* file exists, return */
result = 1;
+ closedir(hugepage_dir);
goto end;
}
break;
--
2.30.2
More information about the dev
mailing list