]> PatchyGit - patchyircd.git/commitdiff
don't free a stack variable
authorEgor <egor@patchysicp.xyz>
Tue, 3 May 2022 08:20:33 +0000 (11:20 +0300)
committerEgor <egor@patchysicp.xyz>
Tue, 3 May 2022 08:20:33 +0000 (11:20 +0300)
irc.c

diff --git a/irc.c b/irc.c
index 95f6f8b..d208544 100644 (file)
--- a/irc.c
+++ b/irc.c
@@ -289,7 +289,6 @@ void setNick(struct client_data *client, char* nickname) {
                // Nickname is already taken
                copy_strf(&databuf, ":%s 443 * %s :Nickname is already in use\n", hostname, nickname);
                send_log(client->FD, databuf.buf, databuf.len, 0);
-               free(key);
                return;
        }