git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8e320ae
)
s3: Fix a memleak in sys_popen
author
Volker Lendecke
<vl@samba.org>
Sat, 14 Nov 2009 16:23:08 +0000
(17:23 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sun, 15 Nov 2009 11:49:47 +0000
(12:49 +0100)
Found with "dfree command" set
source3/lib/system.c
patch
|
blob
|
history
diff --git
a/source3/lib/system.c
b/source3/lib/system.c
index f9cd4a2355a114a082dbe898c2ab2f072b4e7168..433169174661f8d2508ee39c5f3ffe7ccbf4397f 100644
(file)
--- 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;
}
argl[i++] = NULL;
+ TALLOC_FREE(trunc_cmd);
return argl;
nomem:
return argl;
nomem: