From 68bd107c6db941ec7b22f3e491e314041a95224b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Sun, 27 Mar 2011 23:50:53 +0200 Subject: [PATCH] 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(+) diff --git a/src/helper/command.c b/src/helper/command.c index 85d9463df..b00a23126 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;