diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2010-03-10 13:41:13 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2010-03-10 13:41:13 +0000 |
commit | de649137860e6a0edab56b7e0b9aedef60398a5f (patch) | |
tree | 6a8ce6dbe9340db2a086cf29a6ad9f1dd9c4a2e8 | |
parent | b34c8f5f39963d40caf3355faa508b304283d666 (diff) |
Plug memory leak, from Gregory Thiemonge.
-rw-r--r-- | status.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: status.c,v 1.143 2010-01-28 22:46:44 tcunha Exp $ */ +/* $Id: status.c,v 1.144 2010-03-10 13:41:13 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -527,6 +527,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)); |