[dm-devel] [PATCH 4/5] multipath-tools tests: fix memory leak in hwtable test
mwilck at suse.com
mwilck at suse.com
Tue Aug 25 21:24:49 UTC 2020
From: Martin Wilck <mwilck at suse.com>
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
tests/hwtable.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/hwtable.c b/tests/hwtable.c
index 84d2b35..12660da 100644
--- a/tests/hwtable.c
+++ b/tests/hwtable.c
@@ -25,6 +25,7 @@
#include "test-lib.h"
#include "print.h"
#include "util.h"
+#include "foreign.h"
#define N_CONF_FILES 2
@@ -187,6 +188,9 @@ static int teardown(void **state)
free_hwt(*state);
*state = NULL;
+ cleanup_prio();
+ cleanup_checkers();
+ cleanup_foreign();
return 0;
}
--
2.28.0
More information about the dm-devel
mailing list