diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-01-25 17:25:45 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-01-25 17:34:22 +0100 |
commit | 4c1e13fd453596d4cdf86208d3dd3e117aa229e5 (patch) | |
tree | 76e23ad91407fb5eb12a6aacbb38d257cf0d29c5 /src/plugins/irc | |
parent | 0fade5ccd0a7a029ae0ef42fb4666e2a6a4308b9 (diff) | |
download | weechat-4c1e13fd453596d4cdf86208d3dd3e117aa229e5.zip |
irc: force host to NULL after free
Diffstat (limited to 'src/plugins/irc')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 3238bdbb4..cea5d6b6b 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -4271,7 +4271,10 @@ IRC_PROTOCOL_CALLBACK(354) if (ptr_nick) { if (ptr_nick->host) + { free (ptr_nick->host); + ptr_nick->host = NULL; + } length = strlen (argv[4]) + 1 + strlen (argv[5]) + 1; ptr_nick->host = malloc (length); if (ptr_nick->host) |