mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-27 02:23:15 +01:00
Don't leak job command in #().
This commit is contained in:
parent
d3d85c3df9
commit
41f90bd08f
1
status.c
1
status.c
@ -526,6 +526,7 @@ status_job(struct client *c, char **iptr)
|
|||||||
JOB_PERSIST, c, cmd, status_job_callback, xfree, NULL);
|
JOB_PERSIST, c, cmd, status_job_callback, xfree, NULL);
|
||||||
job_run(job);
|
job_run(job);
|
||||||
}
|
}
|
||||||
|
xfree(cmd);
|
||||||
if (job->data == NULL)
|
if (job->data == NULL)
|
||||||
return (xstrdup(""));
|
return (xstrdup(""));
|
||||||
return (xstrdup(job->data));
|
return (xstrdup(job->data));
|
||||||
|
Loading…
Reference in New Issue
Block a user