]> jfr.im git - irc/evilnet/znc.git/commitdiff
Fix memory leak when reading invalid znc.conf
authorAlexey Sokolov <redacted>
Fri, 30 Oct 2015 14:36:01 +0000 (14:36 +0000)
committerAlexey Sokolov <redacted>
Fri, 30 Oct 2015 14:36:01 +0000 (14:36 +0000)
Found by https://scan.coverity.com/

src/IRCNetwork.cpp

index a022b0e94ff5af058a97d3ccc10f31b460ce71d0..3d6221c0065637d232f9c61c9b7e009fc5f6c72f 100644 (file)
@@ -472,6 +472,7 @@ bool CIRCNetwork::ParseConfig(CConfig *pConfig, CString& sError, bool bUpgrade)
                        CUtils::PrintError(sError);
 
                        CZNC::DumpConfig(pSubConf);
+                       delete pChan;
                        return false;
                }