[llvm-commits] [llvm] r57576 - /llvm/trunk/lib/AsmParser/llvmAsmParser.y
Nuno Lopes
nunoplopes at sapo.pt
Wed Oct 15 05:04:36 PDT 2008
Author: nlopes
Date: Wed Oct 15 07:04:36 2008
New Revision: 57576
URL: http://llvm.org/viewvc/llvm-project?rev=57576&view=rev
Log:
fix memleak in GetForwardRefForGlobal()
Modified:
llvm/trunk/lib/AsmParser/llvmAsmParser.y
Modified: llvm/trunk/lib/AsmParser/llvmAsmParser.y
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/llvmAsmParser.y?rev=57576&r1=57575&r2=57576&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/llvmAsmParser.y (original)
+++ llvm/trunk/lib/AsmParser/llvmAsmParser.y Wed Oct 15 07:04:36 2008
@@ -140,6 +140,7 @@
GlobalValue *Ret = 0;
if (I != GlobalRefs.end()) {
Ret = I->second;
+ I->first.second.destroy();
GlobalRefs.erase(I);
}
return Ret;
More information about the llvm-commits
mailing list