diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2011-07-20 18:31:22 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2011-07-20 18:31:22 +0000 |
| commit | 527379af505ab25b77033407d0ab8f6dff6a59e4 (patch) | |
| tree | 61526e5ca543b47760dbe11c3266281454006063 /buildtool.cpp | |
| parent | Filters. Custom predefined filters update. (diff) | |
| download | inkscape-527379af505ab25b77033407d0ab8f6dff6a59e4.tar.gz inkscape-527379af505ab25b77033407d0ab8f6dff6a59e4.zip | |
Memory leak fixes (Bug #812497)
(bzr r10483)
Diffstat (limited to 'buildtool.cpp')
| -rw-r--r-- | buildtool.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/buildtool.cpp b/buildtool.cpp index 2b4307ab0..983b2f8a4 100644 --- a/buildtool.cpp +++ b/buildtool.cpp @@ -6982,8 +6982,14 @@ public: } //## Make sure destination directory exists if (!createDirectory(destPath)) + { + if (f) + { + fclose(f); + } return false; - + } + //## Check whether it needs to be done String destName; if (destPath.size()>0) @@ -9793,7 +9799,8 @@ bool Make::parsePropertyFile(const String &fileName, { error("property file %s, line %d: expected keyword", fileName.c_str(), linenr); - return false; + fclose(f); + return false; } if (prefix.size() > 0) { |
