1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-10-27 20:30:13 -04:00

Fix memleak in cmd_bookmark_list_shows_bookmarks unittest

Regards https://github.com/profanity-im/profanity/issues/1019
This commit is contained in:
Michael Vetter 2019-10-06 17:54:40 +02:00
parent 6776e39644
commit 1fabb61b40

View File

@ -130,6 +130,22 @@ void cmd_bookmark_list_shows_bookmarks(void **state)
gboolean result = cmd_bookmark(&window, CMD_BOOKMARK, args); gboolean result = cmd_bookmark(&window, CMD_BOOKMARK, args);
assert_true(result); assert_true(result);
free(bm1->barejid);
free(bm1->nick);
free(bm1);
free(bm2->barejid);
free(bm2->nick);
free(bm2);
free(bm3->barejid);
free(bm3->nick);
free(bm3);
free(bm4->barejid);
free(bm4->nick);
free(bm4);
free(bm5->barejid);
free(bm5->nick);
free(bm5);
} }
void cmd_bookmark_add_shows_message_when_invalid_jid(void **state) void cmd_bookmark_add_shows_message_when_invalid_jid(void **state)