From 729acb64caacab67fccaccb94ecea42bd89620dc Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Fri, 28 Mar 2014 12:46:38 +0100 Subject: test: don't leak sd_event in wpas tests Correctly free the sd_event object we allocate, otherwise valgrind will complain loudly. Signed-off-by: David Herrmann --- test/test_wpas.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_wpas.c b/test/test_wpas.c index 9864f9d..bf368e8 100644 --- a/test/test_wpas.c +++ b/test/test_wpas.c @@ -52,6 +52,8 @@ static void stop_test_client(void) client = NULL; wpas_unref(server); server = NULL; + sd_event_unref(event); + event = NULL; } START_TEST(bus_invalid_open) -- cgit v1.2.3