numam-dpdk/lib/pdump
Konstantin Ananyev 53caecb844 pdump: fix freeing statistics memzone
rte_pdump_init() always allocates new memzone for pdump_stats.
Though rte_pdump_uninit() never frees it.
So the following combination will always fail:
rte_pdump_init(); rte_pdump_uninit(); rte_pdump_init();
The issue was caught by pdump_autotest UT.
While first test run successful, any consecutive runs
of this test-case will fail.
Fix the issue by calling rte_memzone_free() for statistics memzone.

Fixes: 10f726efe2 ("pdump: support pcapng and filtering")

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
2021-11-03 12:53:03 +01:00
..
meson.build build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
rte_pdump.c pdump: fix freeing statistics memzone 2021-11-03 12:53:03 +01:00
rte_pdump.h pdump: support pcapng and filtering 2021-10-22 22:07:48 +02:00
version.map pdump: support pcapng and filtering 2021-10-22 22:07:48 +02:00