Skip to content

Commit 13cd7d3

Browse files
committed
free cmd_str after write()
1 parent 6a019c7 commit 13cd7d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kirc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ raw(char *fmt, ...) {
8282
if (olog) printa(cmd_str);
8383

8484
write(conn, cmd_str, strlen(cmd_str));
85+
free(cmd_str);
8586
}
8687

8788
static void

0 commit comments

Comments
 (0)