Don't leak job command in #().

This commit is contained in:
Nicholas Marriott 2010-03-27 15:06:40 +00:00
parent d3d85c3df9
commit 41f90bd08f

View File

@ -526,6 +526,7 @@ status_job(struct client *c, char **iptr)
JOB_PERSIST, c, cmd, status_job_callback, xfree, NULL);
job_run(job);
}
xfree(cmd);
if (job->data == NULL)
return (xstrdup(""));
return (xstrdup(job->data));