aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/processor/basic_source_line_resolver.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/processor/basic_source_line_resolver.cc b/src/processor/basic_source_line_resolver.cc
index 98d94a93..db9cca8a 100644
--- a/src/processor/basic_source_line_resolver.cc
+++ b/src/processor/basic_source_line_resolver.cc
@@ -262,7 +262,9 @@ void BasicSourceLineResolver::UnloadModule(const CodeModule *module)
ModuleMap::iterator iter = modules_->find(module->code_file());
if (iter != modules_->end()) {
+ Module *basic_module = iter->second;
modules_->erase(iter);
+ delete basic_module;
}
}