From 264e172abf272caa07f93790b45f61d472b51470 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 13 Feb 2002 15:11:47 +0000 Subject: 001 event should free real_address if it already existed. this might happen with for example irc bouncers. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2437 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc-servers.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/irc/core') diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c index 0faa299f..11ada92c 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -456,6 +456,7 @@ static void event_connected(IRC_SERVER_REC *server, const char *data, const char if (server->real_address == NULL) { /* set the server address */ + g_free(server->real_address); server->real_address = from == NULL ? g_strdup(server->connrec->address) : /* shouldn't happen.. */ g_strdup(from); -- cgit v1.2.3