summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-03-28 12:46:38 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2014-03-28 12:46:38 +0100
commit729acb64caacab67fccaccb94ecea42bd89620dc (patch)
treeceebf2db363d7ad4b8f896a7734c51f24df32733
parent9fdda3b09ae376b3214aa88aa5c29bb474a30d88 (diff)
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 <dh.herrmann@gmail.com>
-rw-r--r--test/test_wpas.c2
1 files changed, 2 insertions, 0 deletions
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)