From aedcfc5cc7ff1e6416d94b9109da6dc593cdd8ba Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Mon, 1 Nov 2010 21:48:41 +0100 Subject: [PATCH] Properly close fd in manifest_get if gzdopen fails --- manifest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/manifest.c b/manifest.c index bb809ba57..6228c60a8 100644 --- a/manifest.c +++ b/manifest.c @@ -536,6 +536,7 @@ manifest_get(const char *manifest_path) } f = gzdopen(fd, "rb"); if (!f) { + close(fd); cc_log("Failed to gzdopen manifest file"); goto out; } -- 2.47.2