aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-24 14:22:12 +0000
committerOmar Polo <op@omarpolo.com>2023-06-24 14:22:12 +0000
commit841633cfeca9acf9a691f16760c2d7c06202664f (patch)
treea7dea03e599f1df7a62d6c6a7cec0629b9dbc628 /server.c
parentddf7a437de12fab9e000e5b555fdbf1891632dad (diff)
plug memory leak in client_close_ev
Diffstat (limited to 'server.c')
-rw-r--r--server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server.c b/server.c
index 2d77353..4f0f55a 100644
--- a/server.c
+++ b/server.c
@@ -1267,6 +1267,8 @@ client_close_ev(int fd, short event, void *d)
close(c->fd);
c->fd = -1;
+
+ free(c);
}
static void