From 954aafdf50559dc9f868f79aacbdfdb0bf8bbb3b Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Mon, 20 May 2019 18:13:20 +0100 Subject: Fix memory leak when updating nick when server sends NICK. --- blabouncer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'blabouncer.c') diff --git a/blabouncer.c b/blabouncer.c index 3198026..23d5217 100644 --- a/blabouncer.c +++ b/blabouncer.c @@ -961,6 +961,7 @@ int processircmessage(SSL *server_ssl, char *str, int source, struct client *cli strcpy(ircdstrings->ircnick, prefixcopy); printf("Updated ircnick to '%s'.\n", ircdstrings->ircnick); free(nickuserhostcpy); + free(prefixcopy); } // Relay to all clients -- cgit v1.2.3