projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23ac4f1
)
Fixing memory leak
author
Andrew Kaylor
<andrew.kaylor@intel.com>
Tue, 12 May 2015 00:13:51 +0000
(
00:13
+0000)
committer
Andrew Kaylor
<andrew.kaylor@intel.com>
Tue, 12 May 2015 00:13:51 +0000
(
00:13
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237072
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/WinEHPrepare.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/WinEHPrepare.cpp
b/lib/CodeGen/WinEHPrepare.cpp
index c56a779255fc9c2f6d4ae7bbf2933445ba700d23..2cebb1d40cf9d0d1b48010f1d86d574e3a15d145 100644
(file)
--- a/
lib/CodeGen/WinEHPrepare.cpp
+++ b/
lib/CodeGen/WinEHPrepare.cpp
@@
-882,7
+882,9
@@
bool WinEHPrepare::prepareExceptionHandlers(
Function *Handler = cast<Function>(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.