mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
m_xline_db Fix memory leak when adding a loaded xline fails
(cherry picked from commit 9475a10a86c6c2e8575366f6e0c9b28b66a97698)
This commit is contained in:
parent
e1c52d43b7
commit
c7439bd1de
@ -236,6 +236,8 @@ class ModuleXLineDB : public Module
|
|||||||
{
|
{
|
||||||
ServerInstance->SNO->WriteToSnoMask('x', "database: Added a line of type %s", command_p[1].c_str());
|
ServerInstance->SNO->WriteToSnoMask('x', "database: Added a line of type %s", command_p[1].c_str());
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
delete xl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user