aboutsummaryrefslogtreecommitdiff
path: root/src/processor
diff options
context:
space:
mode:
authorted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-08-27 13:32:19 +0000
committerted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-08-27 13:32:19 +0000
commit513083b598bf8f844e4e9760cfb9763ae7692786 (patch)
tree4ac0f83ad9717489ffa639b9b7d37cc707f82f16 /src/processor
parentAllow Linux dumper to work on PTRACE-hardened kernels (diff)
downloadbreakpad-513083b598bf8f844e4e9760cfb9763ae7692786.tar.xz
Fix memory leak in BasicSourceLineResolver::UnloadModule
R=nealsid at http://breakpad.appspot.com/179001/show git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@674 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/processor')
-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;
}
}