]> jfr.im git - irc/gunnarbeutner/shroudbnc.git/commitdiff
Fix another resource leak in CLog::WriteUnformattedLine().
authorGunnar Beutner <redacted>
Wed, 5 Feb 2014 19:13:49 +0000 (20:13 +0100)
committerGunnar Beutner <redacted>
Thu, 6 Feb 2014 08:53:44 +0000 (09:53 +0100)
src/Log.cpp

index f49d5c4c6d76cf2cfb86a8ff6d3474dc759c82ee..36056235fd4609f656e7d43534ffb5f1307dc54d 100644 (file)
@@ -192,6 +192,9 @@ void CLog::WriteUnformattedLine(const char *Line) {
        dupLine = strdup(Line);
 
        if (AllocFailed(dupLine)) {
+               if (!m_KeepOpen)
+                       fclose(LogFile);
+
                return;
        }