diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-18 22:39:25 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-18 22:39:25 +0000 |
commit | 06c4fa4299f6a1b3dd13356dc57d0dcf32353b71 (patch) | |
tree | 1e0f55ac24af7e2d84e5d7d815906a1a221eef94 /src | |
parent | f08dda3cad24f68719e9c58d28b9381aad7f8689 (diff) |
fix possible minor memleak in LoadModule. Thx IronLegend.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7387 e03df62e-2008-0410-955e-edbf42e46eb7
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) |