mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
fix possible minor memleak in LoadModule. Thx IronLegend.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7387 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
f08dda3cad
commit
06c4fa4299
@ -961,6 +961,7 @@ bool InspIRCd::LoadModule(const char* filename)
|
||||
{
|
||||
this->Log(DEFAULT,"Unable to load %s: %s",modfile,factory[this->ModCount+1]->LastError());
|
||||
snprintf(MODERR,MAXBUF,"Loader/Linker error: %s",factory[this->ModCount+1]->LastError());
|
||||
delete a;
|
||||
return false;
|
||||
}
|
||||
if ((long)factory[this->ModCount+1]->factory != -1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user