From ad11d49d640c911b42c5292b5f5b7dbdffb4908b Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 9 Jul 2019 13:19:36 +0000 Subject: [PATCH] Do not leak empty lines, GitHub issue 1824. --- control.c | 1 + 1 file changed, 1 insertion(+) diff --git a/control.c b/control.c index 16fa71bb..c4cf5338 100644 --- a/control.c +++ b/control.c @@ -80,6 +80,7 @@ control_callback(struct client *c, int closed, __unused void *data) if (line == NULL) break; if (*line == '\0') { /* empty line exit */ + free(line); c->flags |= CLIENT_EXIT; break; }