From: Krzysztof KosiƄski Date: Sun, 7 Feb 2010 01:43:12 +0000 (+0100) Subject: Fix FD leak in buildtool.cpp X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a83b818f9572d5dfb009ae5adc598999e3899200;p=inkscape.git Fix FD leak in 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; }