summaryrefslogtreecommitdiffstats
path: root/buildtool.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-02-07 01:43:12 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-02-07 01:43:12 +0000
commitdf4433a9f1f8470dc5496078ed5378648e762783 (patch)
tree75d19cb627f44ee1d32cecd3c13bb7567b6d15e6 /buildtool.cpp
parentFix path transformation (LP bug #515237) (diff)
downloadinkscape-df4433a9f1f8470dc5496078ed5378648e762783.tar.gz
inkscape-df4433a9f1f8470dc5496078ed5378648e762783.zip
Fix FD leak in buildtool.cpp
Fixed bugs: - https://launchpad.net/bugs/488862 (bzr r9063)
Diffstat (limited to 'buildtool.cpp')
-rw-r--r--buildtool.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}