From 2902e1ca869ade6c53e565431417a64cbcd3f6d5 Mon Sep 17 00:00:00 2001 From: Andrew Kaylor Date: Fri, 3 Apr 2015 21:44:17 +0000 Subject: [PATCH] Fixing a memory leak in WinEHPrepare git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234059 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/WinEHPrepare.cpp | 2 ++ 1 file changed, 2 insertions(+) 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.