From de649137860e6a0edab56b7e0b9aedef60398a5f Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 10 Mar 2010 13:41:13 +0000 Subject: [PATCH] Plug memory leak, from Gregory Thiemonge. --- status.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/status.c b/status.c index a6addbeb..1056bf59 100644 --- a/status.c +++ b/status.c @@ -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 @@ -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));