diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-04-12 22:00:15 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-04-13 08:42:45 +0200 |
commit | 299c308f00d2e95f04ea4203711943b00f737468 (patch) | |
tree | 89ac4ca0de100a27d0f6a12e4983ff33f399449a | |
parent | 3d95217745cd269e6911a0830f7e6cc515828f07 (diff) | |
download | weechat-299c308f00d2e95f04ea4203711943b00f737468.zip |
irc: fix memory leak in infos "irc_server_isupport" and "irc_server_isupport_value"
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | src/plugins/irc/irc-info.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 44801ddf9..e07eaaa2f 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -38,6 +38,7 @@ Bug fixes:: * core: set max length to 4096 for /secure passphrase (issue #1323) * core: refilter only affected buffers on filter change (issue #1309, issue #1311) * fset: fix slow refresh of fset buffer during /reload (issue #1313) + * irc: fix memory leak in infos "irc_server_isupport" and "irc_server_isupport_value" * irc: fix length of string for SHA-512, SHA-256 and SHA-1 in help on ssl_fingerprint option * irc: display an error with /allchan -current or /allpv -current if the current buffer is not an irc buffer (issue #1325) * irc: fix update of channels modes with arguments when joining a channel (issue #1324) 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); } } |