From 69fb37885898a35a32d3a054e61e2d236f834d7e Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 12 May 2006 17:56:20 +0000 Subject: [PATCH] When reading the symbol table, make sure to delete the ArchiveMember created by reading the symbol table. llvm-svn: 28251 --- llvm/lib/Bytecode/Archive/ArchiveReader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Bytecode/Archive/ArchiveReader.cpp b/llvm/lib/Bytecode/Archive/ArchiveReader.cpp index ac8fb11f4c03..f238f59882eb 100644 --- a/llvm/lib/Bytecode/Archive/ArchiveReader.cpp +++ b/llvm/lib/Bytecode/Archive/ArchiveReader.cpp @@ -363,6 +363,8 @@ Archive::loadSymbolTable() { 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