From a83b818f9572d5dfb009ae5adc598999e3899200 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Krzysztof=20Kosi=C5=84ski?= Date: Sun, 7 Feb 2010 02:43:12 +0100 Subject: [PATCH] Fix FD leak in buildtool.cpp --- buildtool.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/buildtool.cpp b/buildtool.cpp index 538a6faa5..2b10f3577 100644 --- a/buildtool.cpp +++ b/buildtool.cpp @@ -5213,6 +5213,7 @@ bool MakeBase::copyFile(const String &srcFile, const String &destFile) FILE *destf = fopen(destNative.c_str(), "wb"); if (!destf) { + fclose(srcf); error("copyFile cannot open %s for writing", srcNative.c_str()); return false; } -- 2.30.2