summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWouter Coekaerts <coekie@irssi.org>2005-06-24 16:43:18 +0000
committercoekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564>2005-06-24 16:43:18 +0000
commit37941e84fe2da2817b93f4d6c2fdbedd9f6b90e8 (patch)
tree458684f797b9ee8312bf49cb01b037fa42452551 /src
parent5a280a620d37ac223e0ece5fdf15b706c96e1fce (diff)
downloadirssi-37941e84fe2da2817b93f4d6c2fdbedd9f6b90e8.zip
Fix server->last_nick leak by Toby (Bug 267)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3794 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/irc/core/irc-commands.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc/core/irc-commands.c b/src/irc/core/irc-commands.c
index 40159c9f..0af623a1 100644
--- a/src/irc/core/irc-commands.c
+++ b/src/irc/core/irc-commands.c
@@ -900,6 +900,8 @@ static void sig_server_disconnected(IRC_SERVER_REC *server)
if (!IS_IRC_SERVER(server))
return;
+ g_free(server->last_nick);
+
while (server->knockoutlist != NULL)
knockout_destroy(server, server->knockoutlist->data);
}