[llvm-commits] CVS: llvm/lib/Bytecode/Archive/ArchiveReader.cpp

Reid Spencer reid at x10sys.com
Fri May 12 10:56:33 PDT 2006



Changes in directory llvm/lib/Bytecode/Archive:

ArchiveReader.cpp updated: 1.43 -> 1.44
---
Log message:

When reading the symbol table, make sure to delete the ArchiveMember
created by reading the symbol table. 


---
Diffs of the changes:  (+2 -0)

 ArchiveReader.cpp |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/lib/Bytecode/Archive/ArchiveReader.cpp
diff -u llvm/lib/Bytecode/Archive/ArchiveReader.cpp:1.43 llvm/lib/Bytecode/Archive/ArchiveReader.cpp:1.44
--- llvm/lib/Bytecode/Archive/ArchiveReader.cpp:1.43	Mon Dec 26 08:31:26 2005
+++ llvm/lib/Bytecode/Archive/ArchiveReader.cpp	Fri May 12 12:56:20 2006
@@ -363,6 +363,8 @@
     At += mbr->getSize();
     if ((intptr_t(At) & 1) == 1)
       At++;
+    delete mbr;
+    // Can't be any more symtab headers so just advance
     FirstFile = At;
   } else {
     // There's no symbol table in the file. We have to rebuild it from scratch






More information about the llvm-commits mailing list