Do not leak empty lines, GitHub issue 1824.

This commit is contained in:
nicm 2019-07-09 13:19:36 +00:00
parent b74b8be680
commit ad11d49d64

View File

@ -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;
}