[dpdk-stable] [PATCH 2/4] app/pdump: fix the memory leak by rte_service_init
Harry van Haaren
harry.van.haaren at intel.com
Tue Feb 13 17:05:42 CET 2018
From: Vipin Varghese <vipin.varghese at intel.com>
When pdump is run multiple times against any primary application,
it consumes huge page memory by rte_service_init. This is not freed
at exit of application.
Invoking rte_service_finalize to free memory and prevent memory leak.
Signed-off-by: Vipin Varghese <vipin.varghese at intel.com>
---
app/pdump/main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/app/pdump/main.c b/app/pdump/main.c
index 66272f5..6f71c69 100644
--- a/app/pdump/main.c
+++ b/app/pdump/main.c
@@ -54,6 +54,7 @@
#include <rte_mempool.h>
#include <rte_ring.h>
#include <rte_pdump.h>
+#include <rte_service.h>
#define CMD_LINE_OPT_PDUMP "pdump"
#define PDUMP_PORT_ARG "port"
@@ -911,5 +912,7 @@ main(int argc, char **argv)
/* dump debug stats */
print_pdump_stats();
+ rte_service_finalize();
+
return 0;
}
--
2.7.4
More information about the stable
mailing list