summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp3
1 files changed, 3 insertions, 0 deletions
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)