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:
f05ff66
)
fix memleak in GetForwardRefForGlobal()
author
Nuno Lopes
<nunoplopes@sapo.pt>
Wed, 15 Oct 2008 12:04:36 +0000
(12:04 +0000)
committer
Nuno Lopes
<nunoplopes@sapo.pt>
Wed, 15 Oct 2008 12:04:36 +0000
(12:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57576
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/AsmParser/llvmAsmParser.y
patch
|
blob
|
history
diff --git
a/lib/AsmParser/llvmAsmParser.y
b/lib/AsmParser/llvmAsmParser.y
index 54694d712cb0030eee43d5768a63c13bc1235ed1..f2e6404d307cc6d0633e55137e7565ad60a330cb 100644
(file)
--- a/
lib/AsmParser/llvmAsmParser.y
+++ b/
lib/AsmParser/llvmAsmParser.y
@@
-140,6
+140,7
@@
static struct PerModuleInfo {
GlobalValue *Ret = 0;
if (I != GlobalRefs.end()) {
Ret = I->second;
+ I->first.second.destroy();
GlobalRefs.erase(I);
}
return Ret;