mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
evbuffer_readline returns allocated storage, don't leak it.
This commit is contained in:
parent
f81d723264
commit
cb6f36655e
@ -112,6 +112,7 @@ cmd_run_shell_callback(struct job *job)
|
||||
do {
|
||||
if ((line = evbuffer_readline(job->event->input)) != NULL) {
|
||||
cmd_run_shell_print (job, line);
|
||||
free(line);
|
||||
lines++;
|
||||
}
|
||||
} while (line != NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user