summaryrefslogtreecommitdiff
path: root/blabouncer.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-05-20 18:13:20 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-05-20 18:13:20 +0100
commit954aafdf50559dc9f868f79aacbdfdb0bf8bbb3b (patch)
tree4dce9f0e0a00887272ecae77653c3606d6b25da3 /blabouncer.c
parent18775b0ae37edc1a5906df006f0e0e5f7da66afe (diff)
Fix memory leak when updating nick when server sends NICK.
Diffstat (limited to 'blabouncer.c')
-rw-r--r--blabouncer.c1
1 files changed, 1 insertions, 0 deletions
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