diff options
author | thestig@chromium.org <thestig@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2014-05-28 18:01:22 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2014-05-28 18:01:22 +0000 |
commit | a57c70484d2074f3b0a0839db6b329703a70b71e (patch) | |
tree | c8f601ac349fbbeb8679962c6021566805d26bab /src/client | |
parent | Fix a memory leak in DwarfCUToModule::FuncHandler::Finish(). (diff) | |
download | breakpad-a57c70484d2074f3b0a0839db6b329703a70b71e.tar.xz |
Linux: Fix a memory leak in ExceptionHandler.
BUG=592
R=mark@chromium.org
Review URL: https://breakpad.appspot.com/3684002
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1334 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/linux/handler/exception_handler.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/linux/handler/exception_handler.cc b/src/client/linux/handler/exception_handler.cc index 8a0cddad..f30e4594 100644 --- a/src/client/linux/handler/exception_handler.cc +++ b/src/client/linux/handler/exception_handler.cc @@ -230,6 +230,8 @@ ExceptionHandler::~ExceptionHandler() { std::find(handler_stack_->begin(), handler_stack_->end(), this); handler_stack_->erase(handler); if (handler_stack_->empty()) { + delete handler_stack_; + handler_stack_ = NULL; RestoreAlternateStackLocked(); RestoreHandlersLocked(); } |