From 0fecdb7904b95dc5979da03fab66c3fd928a5d68 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 17 Aug 2020 11:30:00 +0200 Subject: [PATCH] disasm: Use make instead of naked new --- Userland/disasm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/disasm.cpp b/Userland/disasm.cpp index 333400618f..7f2e811058 100644 --- a/Userland/disasm.cpp +++ b/Userland/disasm.cpp @@ -73,7 +73,7 @@ int main(int argc, char** argv) NonnullRefPtr elf_loader = ELF::Loader::create(asm_data, asm_size); if (elf_loader->image().is_valid()) { elf = elf_loader; - symbol_provider = new X86::ELFSymbolProvider(*elf); + symbol_provider = make(*elf); elf->image().for_each_section_of_type(SHT_PROGBITS, [&](const ELF::Image::Section& section) { // FIXME: Disassemble all SHT_PROGBITS sections, not just .text. if (section.name() != ".text")