git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f06c68
)
s3-utils: Fix a memory leak in smbget.
author
Andreas Schneider
<asn@samba.org>
Wed, 4 Dec 2013 13:01:55 +0000
(14:01 +0100)
committer
Michael Adam
<obnox@samba.org>
Fri, 6 Dec 2013 00:14:09 +0000
(
01:14
+0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/utils/smbget.c
patch
|
blob
|
history
diff --git
a/source3/utils/smbget.c
b/source3/utils/smbget.c
index 5cb6849bf7dcfd9ea700875d0e1e0e27079c7180..28d56478d260b9cb31ffdb323b9bdfc1a7add7d8 100644
(file)
--- a/
source3/utils/smbget.c
+++ b/
source3/utils/smbget.c
@@
-159,6
+159,7
@@
static int smb_download_dir(const char *base, const char *name, int resume)
char *newname;
if(!strcmp(dirent->name, ".") || !strcmp(dirent->name, ".."))continue;
if (asprintf(&newname, "%s/%s", tmpname, dirent->name) == -1) {
+ free(tmpname);
return 1;
}
switch(dirent->smbc_type) {