From bf4e8ba0485ca36a0a9db48d4cd7f133b848f1d4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 14 Nov 2009 17:23:08 +0100 Subject: s3: Fix a memleak in sys_popen Found with "dfree command" set --- source3/lib/system.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3') diff --git a/source3/lib/system.c b/source3/lib/system.c index f9cd4a2355..4331691746 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -1289,6 +1289,7 @@ static char **extract_args(TALLOC_CTX *mem_ctx, const char *command) } argl[i++] = NULL; + TALLOC_FREE(trunc_cmd); return argl; nomem: -- cgit