From: Andrew Kaylor Date: Fri, 3 Apr 2015 21:44:17 +0000 (+0000) Subject: Fixing a memory leak in WinEHPrepare X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2902e1ca869ade6c53e565431417a64cbcd3f6d5;p=oota-llvm.git Fixing a memory leak in WinEHPrepare git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234059 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/WinEHPrepare.cpp b/lib/CodeGen/WinEHPrepare.cpp index 2601d7a98be..d030a7d44cd 100644 --- a/lib/CodeGen/WinEHPrepare.cpp +++ b/lib/CodeGen/WinEHPrepare.cpp @@ -733,6 +733,8 @@ void WinEHPrepare::completeNestedLandingPad(Function *ParentFn, ActionTargets.push_back(NewBA); } } + DeleteContainerPointers(ActionList); + ActionList.clear(); OutlinedBB->getInstList().push_back(EHActions); // Insert an indirect branch into the outlined landing pad BB.