summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2Lib/ClientUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePatch2Lib/ClientUtil.cpp')
-rw-r--r--cpp/src/IcePatch2Lib/ClientUtil.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/IcePatch2Lib/ClientUtil.cpp b/cpp/src/IcePatch2Lib/ClientUtil.cpp
index edbcaed3bbb..d34e8f96979 100644
--- a/cpp/src/IcePatch2Lib/ClientUtil.cpp
+++ b/cpp/src/IcePatch2Lib/ClientUtil.cpp
@@ -309,6 +309,11 @@ IcePatch2::Patcher::Patcher(const FileServerPrx& server,
IcePatch2::Patcher::~Patcher()
{
+ if(_log != 0)
+ {
+ fclose(_log);
+ _log = 0;
+ }
}
namespace