From 9eaefa9786ac20da40966719f9920fb223d89ea8 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 21 Sep 2011 04:01:19 +0000 Subject: llvm-objdump: Fix use after free. llvm-svn: 140237 --- llvm/tools/llvm-objdump/MachODump.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/llvm-objdump/MachODump.cpp') diff --git a/llvm/tools/llvm-objdump/MachODump.cpp b/llvm/tools/llvm-objdump/MachODump.cpp index 7e3bb20d3e1..0daf9d4214a 100644 --- a/llvm/tools/llvm-objdump/MachODump.cpp +++ b/llvm/tools/llvm-objdump/MachODump.cpp @@ -346,11 +346,11 @@ void llvm::DisassembleInputMachO(StringRef Filename) { StringRef DebugAbbrevSection, DebugInfoSection, DebugArangesSection, DebugLineSection, DebugStrSection; OwningPtr diContext; + OwningPtr DSYMObj; // Try to find debug info and set up the DIContext for it. if (UseDbg) { ArrayRef
DebugSections = Sections; std::vector
DSYMSections; - OwningPtr DSYMObj; // A separate DSym file path was specified, parse it as a macho file, // get the sections and supply it to the section name parsing machinery. -- cgit v1.2.3