[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 26 11:26:28 PDT 2004
Changes in directory llvm/lib/AsmParser:
llvmAsmParser.y updated: 1.205 -> 1.206
---
Log message:
Plug a memory leak in the asmparser. It turns out that we were leaking
the strings for basic block labels in some cases. This amounted to about
120K of memory for namd, a medium sized program.
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.205 llvm/lib/AsmParser/llvmAsmParser.y:1.206
--- llvm/lib/AsmParser/llvmAsmParser.y:1.205 Sat Oct 16 13:17:13 2004
+++ llvm/lib/AsmParser/llvmAsmParser.y Tue Oct 26 13:26:14 2004
@@ -405,7 +405,7 @@
CurFun.CurrentFunction->getBasicBlockList().remove(BB);
CurFun.CurrentFunction->getBasicBlockList().push_back(BB);
}
-
+ ID.destroy();
return BB;
}
More information about the llvm-commits
mailing list