aboutsummaryrefslogtreecommitdiff
path: root/src/client/linux/handler
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2014-05-28 18:01:22 +0000
committerthestig@chromium.org <thestig@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2014-05-28 18:01:22 +0000
commita57c70484d2074f3b0a0839db6b329703a70b71e (patch)
treec8f601ac349fbbeb8679962c6021566805d26bab /src/client/linux/handler
parentFix a memory leak in DwarfCUToModule::FuncHandler::Finish(). (diff)
downloadbreakpad-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/linux/handler')
-rw-r--r--src/client/linux/handler/exception_handler.cc2
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();
}