mirror of
https://github.com/tmux/tmux.git
synced 2024-12-25 02:48:47 +00:00
Do not leak empty lines, GitHub issue 1824.
This commit is contained in:
parent
b74b8be680
commit
ad11d49d64
@ -80,6 +80,7 @@ control_callback(struct client *c, int closed, __unused void *data)
|
|||||||
if (line == NULL)
|
if (line == NULL)
|
||||||
break;
|
break;
|
||||||
if (*line == '\0') { /* empty line exit */
|
if (*line == '\0') { /* empty line exit */
|
||||||
|
free(line);
|
||||||
c->flags |= CLIENT_EXIT;
|
c->flags |= CLIENT_EXIT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user