summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-04-12 22:00:15 +0200
committerSébastien Helleu <flashcode@flashtux.org>2019-04-13 08:42:45 +0200
commit299c308f00d2e95f04ea4203711943b00f737468 (patch)
tree89ac4ca0de100a27d0f6a12e4983ff33f399449a /src/plugins
parent3d95217745cd269e6911a0830f7e6cc515828f07 (diff)
downloadweechat-299c308f00d2e95f04ea4203711943b00f737468.zip
irc: fix memory leak in infos "irc_server_isupport" and "irc_server_isupport_value"
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-info.c b/src/plugins/irc/irc-info.c
index 5c5b0d05d..d63b700f3 100644
--- a/src/plugins/irc/irc-info.c
+++ b/src/plugins/irc/irc-info.c
@@ -334,6 +334,7 @@ irc_info_info_irc_server_isupport_cb (const void *pointer, void *data,
isupport_value = irc_server_get_isupport_value (ptr_server,
pos_comma + 1);
}
+ free (server);
}
}
@@ -371,6 +372,7 @@ irc_info_info_irc_server_isupport_value_cb (const void *pointer, void *data,
isupport_value = irc_server_get_isupport_value (ptr_server,
pos_comma + 1);
}
+ free (server);
}
}