From 4d97b5dcca827d6767857182772f4ced0fdd5da7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 10 Nov 2013 19:43:48 +0100 Subject: [PATCH] gpo: Fix CID 1034881 Resource leak Signed-off-by: Volker Lendecke Reviewed-by: Ira Cooper --- source4/lib/policy/gp_filesys.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.11.4.GIT