From: mwilck@suse.com Subject: [PATCH 4/5] multipath-tools tests: fix memory leak in hwtable test Date: Tue, 25 Aug 2020 23:24:49 +0200 Message-ID: <20200825212450.8561-4-mwilck@suse.com> References: <20200825212450.8561-1-mwilck@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20200825212450.8561-1-mwilck@suse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Christophe Varoqui , Benjamin Marzinski Cc: dm-devel@redhat.com, Martin Wilck List-Id: dm-devel.ids From: Martin Wilck Signed-off-by: Martin Wilck --- 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