diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-20 23:15:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-20 23:15:21 +0000 |
commit | cb6f36655efe8d7169517cc06ef6c4513a1d14d6 (patch) | |
tree | 496fb86dc6cf83070a4f81044f5c7e5418f68cbd /cmd-run-shell.c | |
parent | f81d72326458ec421348ab5aecc7038c1850407c (diff) | |
download | rtmux-cb6f36655efe8d7169517cc06ef6c4513a1d14d6.tar.gz rtmux-cb6f36655efe8d7169517cc06ef6c4513a1d14d6.tar.bz2 rtmux-cb6f36655efe8d7169517cc06ef6c4513a1d14d6.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 03cbc292..9b4c006a 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); |