diff options
author | Andreas Schneider <asn@samba.org> | 2011-01-19 15:18:10 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-01-26 14:20:37 -0800 |
commit | de4ef101c165cf735938f914f7da620daea91762 (patch) | |
tree | 9be341a438d0568db824fbb6f2d42ceb5467497d /source3 | |
parent | 08dc51d3caabcebf9cc2dc02aac74632831c09b7 (diff) | |
download | samba-de4ef101c165cf735938f914f7da620daea91762.tar.gz samba-de4ef101c165cf735938f914f7da620daea91762.tar.bz2 samba-de4ef101c165cf735938f914f7da620daea91762.zip |
s3-utils: Fixed possible resource leak in smbget.
s3-utils: Fixed possible resource leak in smbget.
Diffstat (limited to 'source3')
-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 f09c2f6530..672e438376 100644 --- a/source3/utils/smbget.c +++ b/source3/utils/smbget.c @@ -411,6 +411,7 @@ static int smb_download_file(const char *base, const char *name, int recursive, fprintf(stderr, "Offset in local and remote files is different (local: "OFF_T_FORMAT", remote: "OFF_T_FORMAT")\n", (OFF_T_FORMAT_CAST)off1, (OFF_T_FORMAT_CAST)off2); + smbc_close(remotehandle); close(localhandle); return 1; } |