diff options
author | Volker Lendecke <vl@samba.org> | 2013-11-10 19:43:48 +0100 |
---|---|---|
committer | Ira Cooper <ira@samba.org> | 2013-11-11 21:04:09 +0100 |
commit | 4d97b5dcca827d6767857182772f4ced0fdd5da7 (patch) | |
tree | 11bfc9653a31a1dccfe321dd9c2ca59f6af14851 | |
parent | b7420e44b1f7e0e0f54cf9f329981bacf839f7c9 (diff) | |
download | samba-4d97b5dcca827d6767857182772f4ced0fdd5da7.tar.gz samba-4d97b5dcca827d6767857182772f4ced0fdd5da7.tar.xz samba-4d97b5dcca827d6767857182772f4ced0fdd5da7.zip |
gpo: Fix CID 1034881 Resource leak
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
-rw-r--r-- | source4/lib/policy/gp_filesys.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/policy/gp_filesys.c b/source4/lib/policy/gp_filesys.c index 9f60d2f98d4..a528a2ece9a 100644 --- a/source4/lib/policy/gp_filesys.c +++ b/source4/lib/policy/gp_filesys.c @@ -251,6 +251,7 @@ static NTSTATUS gp_get_file (struct smbcli_tree *tree, const char *remote_src, DEBUG(0, ("Remote/local file size mismatch after copying file: " "%s (remote %zu, local %zu).\n", remote_src, file_size, nread)); + close(fh_local); talloc_free(buf); return NT_STATUS_UNSUCCESSFUL; } |