mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-29 13:32:33 +00:00
Plug a leak by ThumbDisassembler::getInstruction(), thanks to Benjamin Kramer!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128241 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9091bf25d9
commit
8cb988686d
@ -465,7 +465,7 @@ bool ThumbDisassembler::getInstruction(MCInst &MI,
|
||||
showBitVector(errs(), insn);
|
||||
});
|
||||
|
||||
ARMBasicMCBuilder *Builder = CreateMCBuilder(Opcode, Format);
|
||||
OwningPtr<ARMBasicMCBuilder> Builder(CreateMCBuilder(Opcode, Format));
|
||||
if (!Builder)
|
||||
return false;
|
||||
|
||||
@ -474,8 +474,6 @@ bool ThumbDisassembler::getInstruction(MCInst &MI,
|
||||
if (!Builder->Build(MI, insn))
|
||||
return false;
|
||||
|
||||
delete Builder;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user