[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y
Chris Lattner
lattner at cs.uiuc.edu
Sat Apr 17 18:49:00 PDT 2004
Changes in directory llvm/lib/AsmParser:
llvmAsmParser.y updated: 1.162 -> 1.163
---
Log message:
Fix a memory leak. We leaked the vector holding the entries in switch tables.
---
Diffs of the changes: (+1 -0)
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.162 llvm/lib/AsmParser/llvmAsmParser.y:1.163
--- llvm/lib/AsmParser/llvmAsmParser.y:1.162 Sun Apr 4 20:30:04 2004
+++ llvm/lib/AsmParser/llvmAsmParser.y Sat Apr 17 18:49:15 2004
@@ -1657,6 +1657,7 @@
E = $8->end();
for (; I != E; ++I)
S->addCase(I->first, I->second);
+ delete $8;
}
| SWITCH IntType ValueRef ',' LABEL ValueRef '[' ']' {
SwitchInst *S = new SwitchInst(getVal($2, $3),
More information about the llvm-commits
mailing list