diff options
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbget.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/smbget.c b/source3/utils/smbget.c index 5cb6849bf7d..28d56478d26 100644 --- 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) { |