summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-server.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-08-05 20:58:24 +0200
committerSébastien Helleu <flashcode@flashtux.org>2019-08-05 20:58:24 +0200
commit210e8648991903738d91dfeac22de107e9cabc7d (patch)
treea3768aeb43461e8415f9272beae98a41d0a4d30c /src/plugins/irc/irc-server.c
parent47010dd9c6fad28b93136c71e66bacc2395345e4 (diff)
downloadweechat-210e8648991903738d91dfeac22de107e9cabc7d.zip
irc: fix memory leak when removing a server
Diffstat (limited to 'src/plugins/irc/irc-server.c')
-rw-r--r--src/plugins/irc/irc-server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c
index 7b1945bc4..1b3737b99 100644
--- a/src/plugins/irc/irc-server.c
+++ b/src/plugins/irc/irc-server.c
@@ -1913,6 +1913,10 @@ irc_server_free_data (struct t_irc_server *server)
free (server->nick_modes);
if (server->host)
free (server->host);
+ if (server->cap_ls)
+ weechat_hashtable_free (server->cap_ls);
+ if (server->cap_list)
+ weechat_hashtable_free (server->cap_list);
if (server->isupport)
free (server->isupport);
if (server->prefix_modes)