summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-14 17:23:08 +0100
committerVolker Lendecke <vl@samba.org>2009-11-15 12:49:47 +0100
commitbf4e8ba0485ca36a0a9db48d4cd7f133b848f1d4 (patch)
tree85bbef463a90f7044eded512c33c70a5e0f484cb /source3
parent8e320aea71465c87627aace10d4b90539cc60209 (diff)
downloadsamba-bf4e8ba0485ca36a0a9db48d4cd7f133b848f1d4.tar.gz
samba-bf4e8ba0485ca36a0a9db48d4cd7f133b848f1d4.tar.bz2
samba-bf4e8ba0485ca36a0a9db48d4cd7f133b848f1d4.zip
s3: Fix a memleak in sys_popen
Found with "dfree command" set
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/system.c1
1 files changed, 1 insertions, 0 deletions
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: