[llvm-commits] [llvm] r57572 - /llvm/trunk/lib/AsmParser/llvmAsmParser.y
Nuno Lopes
nunoplopes at sapo.pt
Wed Oct 15 04:10:23 PDT 2008
Author: nlopes
Date: Wed Oct 15 06:10:21 2008
New Revision: 57572
URL: http://llvm.org/viewvc/llvm-project?rev=57572&view=rev
Log:
fix memleak in ResolveTypeTo()
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=57572&r1=57571&r2=57572&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/llvmAsmParser.y (original)
+++ llvm/trunk/lib/AsmParser/llvmAsmParser.y Wed Oct 15 06:10:21 2008
@@ -708,6 +708,7 @@
CurModule.LateResolveTypes.find(D);
if (I != CurModule.LateResolveTypes.end()) {
((DerivedType*)I->second.get())->refineAbstractTypeTo(ToTy);
+ I->first.destroy();
CurModule.LateResolveTypes.erase(I);
}
D.destroy();
More information about the llvm-commits
mailing list