diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 632319ea3..66e8a530b 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -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) |