From a57c70484d2074f3b0a0839db6b329703a70b71e Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Wed, 28 May 2014 18:01:22 +0000 Subject: 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 --- src/client/linux/handler/exception_handler.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/client/linux/handler/exception_handler.cc') 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(); } -- cgit v1.2.1