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:
peavey 2007-06-18 22:39:25 +00:00
parent f08dda3cad
commit 06c4fa4299

View File

@ -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)