evbuffer_readline returns allocated storage, don't leak it.

This commit is contained in:
Nicholas Marriott
2013-02-20 23:15:21 +00:00
parent f81d723264
commit cb6f36655e
2 changed files with 2 additions and 1 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);