From: Andrew Kaylor Date: Tue, 12 May 2015 00:13:51 +0000 (+0000) Subject: Fixing memory leak X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=d1074b0e7f7a667049effc12c6508e178ca38035 Fixing memory leak git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237072 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/WinEHPrepare.cpp b/lib/CodeGen/WinEHPrepare.cpp index c56a779255f..2cebb1d40cf 100644 --- a/lib/CodeGen/WinEHPrepare.cpp +++ b/lib/CodeGen/WinEHPrepare.cpp @@ -882,7 +882,9 @@ bool WinEHPrepare::prepareExceptionHandlers( Function *Handler = cast(CA->getHandlerBlockOrFunc()); getPossibleReturnTargets(&F, Handler, ReturnTargets); } + delete Action; } + ActionList.clear(); for (BasicBlock *Target : ReturnTargets) { Branch->addDestination(Target); // The target may be a block that we excepted to get pruned.