From 837e03bd8f1be71ca26e3c2581b5444dcb5fe73f Mon Sep 17 00:00:00 2001 From: Lukas Mai Date: Wed, 6 Jan 2016 12:45:18 +0100 Subject: [PATCH] irssiproxy: avoid using pointer after freeing it --- src/irc/proxy/listen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irc/proxy/listen.c b/src/irc/proxy/listen.c index dcc94e6b..5dc9a704 100644 --- a/src/irc/proxy/listen.c +++ b/src/irc/proxy/listen.c @@ -681,8 +681,8 @@ static void read_settings(void) while (add_listens != NULL) { rec = add_listens->data; add_listen(rec->ircnet, rec->port); + add_listens = g_slist_remove(add_listens, rec); g_free(rec); - add_listens = g_slist_remove(add_listens, add_listens->data); } g_strfreev(ports);