From df4433a9f1f8470dc5496078ed5378648e762783 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Sun, 7 Feb 2010 02:43:12 +0100 Subject: Fix FD leak in buildtool.cpp Fixed bugs: - https://launchpad.net/bugs/488862 (bzr r9063) --- buildtool.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'buildtool.cpp') 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; } -- cgit v1.2.3