From 0499c4e0eee945127e161b372193e76281a5298b Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Mon, 14 Oct 2019 00:23:02 +0300 Subject: Fix memory leak in unittests --- tests/unittests/test_cmd_roster.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/unittests/test_cmd_roster.c b/tests/unittests/test_cmd_roster.c index ad0596b2..845fa67f 100644 --- a/tests/unittests/test_cmd_roster.c +++ b/tests/unittests/test_cmd_roster.c @@ -57,6 +57,7 @@ void cmd_roster_shows_roster_when_no_args(void **state) gboolean result = cmd_roster(NULL, CMD_ROSTER, args); assert_true(result); + g_slist_free(roster); roster_destroy(); } -- cgit 1.4.1-2-gfad0