about summary refs log tree commit diff stats
path: root/tests/unittests/test_cmd_roster.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-10-06 18:43:27 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-10-06 18:43:27 +0200
commit5b19ed28ce6f8bd8f46248de612f7ed466dc7a73 (patch)
treec7151a5d8af85b194af26ce8164c686015ec4843 /tests/unittests/test_cmd_roster.c
parent1d23d6461dfe920e96af11a5e6395756c2b7d2c6 (diff)
downloadprofani-tty-5b19ed28ce6f8bd8f46248de612f7ed466dc7a73.tar.gz
Free lits in test_cmd_roster unittest
Regards https://github.com/profanity-im/profanity/issues/1019
Diffstat (limited to 'tests/unittests/test_cmd_roster.c')
-rw-r--r--tests/unittests/test_cmd_roster.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unittests/test_cmd_roster.c b/tests/unittests/test_cmd_roster.c
index ecd9b2e2..563ff9ca 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();
 }
 
@@ -176,6 +177,8 @@ void cmd_roster_nick_sends_name_change_request(void **state)
 
     PContact contact = roster_get_contact(jid);
     assert_string_equal(p_contact_name(contact), nick);
+
+    g_slist_free(groups);
     roster_destroy();
 }
 
@@ -231,5 +234,6 @@ void cmd_roster_clearnick_sends_name_change_request_with_empty_nick(void **state
     PContact contact = roster_get_contact(jid);
     assert_null(p_contact_name(contact));
 
+    g_slist_free(groups);
     roster_destroy();
 }