From 41f90bd08fb760f236857e7b22b89ebb2ffc106d Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 27 Mar 2010 15:06:40 +0000 Subject: Don't leak job command in #(). --- status.c | 1 + 1 file changed, 1 insertion(+) (limited to 'status.c') diff --git a/status.c b/status.c index eff8b615..1d7c8ea1 100644 --- a/status.c +++ b/status.c @@ -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)); -- cgit v1.2.3