From 3cc93d7a5338dd97ccc82ce2b30bc12bb948a961 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Tue, 22 Nov 2016 23:13:08 +0000 Subject: [PATCH] Fix memory leak detected by asan. llvm-svn: 287714 --- lld/ELF/SyntheticSections.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index 7e12dfce9215..04a0f5514f3b 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -221,7 +221,7 @@ MipsOptionsSection *MipsOptionsSection::create() { }; if (Create) - return new MipsOptionsSection(Reginfo); + return make>(Reginfo); return nullptr; }