diff options
author | Jose <jose@zeroc.com> | 2013-08-28 19:00:05 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2013-08-28 19:00:05 +0200 |
commit | fb375a3a6e96abc19185f5e06d94dfe1023d6380 (patch) | |
tree | cfba8eec071f2088959c776504b2bf62f7d6f53e /cpp/src/IcePatch2Lib/ClientUtil.cpp | |
parent | Fix for ICE-5357: improved discovery of replicas on node/slave startup (diff) | |
download | ice-fb375a3a6e96abc19185f5e06d94dfe1023d6380.tar.bz2 ice-fb375a3a6e96abc19185f5e06d94dfe1023d6380.tar.xz ice-fb375a3a6e96abc19185f5e06d94dfe1023d6380.zip |
IcePatch2 minor fix - ensure we always close the log file
Diffstat (limited to 'cpp/src/IcePatch2Lib/ClientUtil.cpp')
-rw-r--r-- | cpp/src/IcePatch2Lib/ClientUtil.cpp | 5 |
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 |