evbuffer_readline returns allocated storage, don't leak it.

This commit is contained in:
Nicholas Marriott
2013-03-22 15:55:22 +00:00
parent 2243cfbe75
commit c519f9a84c
3 changed files with 3 additions and 3 deletions

View File

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