m_xline_db Fix memory leak when adding a loaded xline fails

(cherry picked from commit 9475a10a86c6c2e8575366f6e0c9b28b66a97698)
This commit is contained in:
attilamolnar 2012-07-01 21:06:22 +02:00 committed by Adam
parent e1c52d43b7
commit c7439bd1de

View File

@ -236,6 +236,8 @@ class ModuleXLineDB : public Module
{
ServerInstance->SNO->WriteToSnoMask('x', "database: Added a line of type %s", command_p[1].c_str());
}
else
delete xl;
}
}