From 68e47f5ec2154aa97ff298d4516ca0caf746e51a Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:46:44 +0000 Subject: Valgrind cleanup: finish destructor creation git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11615 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/command_parse.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/command_parse.cpp') diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 3f8f63c48..efc295e5e 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -436,6 +436,9 @@ void CommandParser::RemoveRFCCommands() dlclose(c->second); } RFCCommands.clear(); + // special case: reload isn't in the RFCCommands list but is allocated anyway + Command* reload = cmdlist.find("RELOAD")->second; + delete reload; } void CommandParser::RemoveCommand(Commandtable::iterator safei, const char* source) -- cgit v1.2.3