summaryrefslogtreecommitdiffstats
path: root/control.c
diff options
context:
space:
mode:
authornicm <nicm>2019-07-09 13:19:36 +0000
committernicm <nicm>2019-07-09 13:19:36 +0000
commitad11d49d640c911b42c5292b5f5b7dbdffb4908b (patch)
tree4e49ac9f19c9c45c18b2f263f3b4f09de511ae12 /control.c
parentb74b8be680bb7ca0a6952adafd29d97e85da5c67 (diff)
Do not leak empty lines, GitHub issue 1824.
Diffstat (limited to 'control.c')
-rw-r--r--control.c1
1 files changed, 1 insertions, 0 deletions
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;
}