summaryrefslogtreecommitdiffstats
path: root/source4/lib/policy/gp_filesys.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/policy/gp_filesys.c')
-rw-r--r--source4/lib/policy/gp_filesys.c1
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;
}