diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2013-03-22 15:55:22 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2013-03-22 15:55:22 +0000 |
commit | c519f9a84cd9fc3fdec8b61afaf42995f9e48b46 (patch) | |
tree | d919d29ab80617b5f44f43952bfe3cf6b6dc1542 /cmd-run-shell.c | |
parent | 2243cfbe7559e6cf48194ff95dcd7eb6df5fe41d (diff) | |
download | rtmux-c519f9a84cd9fc3fdec8b61afaf42995f9e48b46.tar.gz rtmux-c519f9a84cd9fc3fdec8b61afaf42995f9e48b46.tar.bz2 rtmux-c519f9a84cd9fc3fdec8b61afaf42995f9e48b46.zip |
evbuffer_readline returns allocated storage, don't leak it.
Diffstat (limited to 'cmd-run-shell.c')
-rw-r--r-- | cmd-run-shell.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-run-shell.c b/cmd-run-shell.c index ea7d1dcb..0d19a8e6 100644 --- a/cmd-run-shell.c +++ b/cmd-run-shell.c @@ -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); |