From 68bd107c6db941ec7b22f3e491e314041a95224b Mon Sep 17 00:00:00 2001 From: Øyvind Harboe Date: Sun, 27 Mar 2011 23:50:53 +0200 Subject: command: fix leak when executing commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit found via valgrind, not observed/reported. Signed-off-by: Øyvind Harboe --- src/helper/command.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/helper') diff --git a/src/helper/command.c b/src/helper/command.c index 85d9463d..b00a2312 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -723,6 +723,7 @@ int command_run_linef(struct command_context *context, const char *format, ...) if (string != NULL) { retval = command_run_line(context, string); + free(string); } va_end(ap); return retval; -- cgit v1.2.3