diff --git a/src/friendlist.c b/src/friendlist.c index 1e95a0e..4ea76d3 100644 --- a/src/friendlist.c +++ b/src/friendlist.c @@ -112,6 +112,13 @@ static void realloc_blocklist(int n) void kill_friendlist(void) { + size_t i; + + for (i = 0; i < Friends.max_idx; ++i) { + if (Friends.list[i].group_invite.data != NULL) + free(Friends.list[i].group_invite.data); + } + realloc_blocklist(0); realloc_friends(0); }