Fix memory leak when reading invalid znc.conf

Found by https://scan.coverity.com/
This commit is contained in:
Alexey Sokolov
2015-10-30 14:36:01 +00:00
parent f6aa35c6fb
commit c8edabb035

View File

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