summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-07-15 12:34:30 +0000
committerGravatar brain2007-07-15 12:34:30 +0000
commit4b5ae9645faa1d43f6c85fd68ca6ed2b3cf948a8 (patch)
tree083faa9286db766fcc1ea40f615694df32ff3435 /src/command_parse.cpp
parentExplicitly disallow mode prefixes > 126, to prevent excess muppetry by 3rd pa... (diff)
Fix for minor memory leak on unloading module, bug #340
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7439 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index ba06c96e1..ab3df5263 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -395,6 +395,7 @@ void CommandParser::RemoveCommand(command_table::iterator safei, const char* sou
if (x->source == std::string(source))
{
cmdlist.erase(safei);
+ delete x;
}
}