summaryrefslogtreecommitdiffstats
path: root/lld/ELF/SyntheticSections.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-11-22 23:13:08 +0000
committerRui Ueyama <ruiu@google.com>2016-11-22 23:13:08 +0000
commit3cc93d7a5338dd97ccc82ce2b30bc12bb948a961 (patch)
treec7129aafdd46d925f55ecac88cedb8f55d1fca7e /lld/ELF/SyntheticSections.cpp
parent8dbc6b26171167b8ddf66a5f4b6d6fb9baf28336 (diff)
downloadbcm5719-llvm-3cc93d7a5338dd97ccc82ce2b30bc12bb948a961.tar.gz
bcm5719-llvm-3cc93d7a5338dd97ccc82ce2b30bc12bb948a961.zip
Fix memory leak detected by asan.
llvm-svn: 287714
Diffstat (limited to 'lld/ELF/SyntheticSections.cpp')
-rw-r--r--lld/ELF/SyntheticSections.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp
index 7e12dfce921..04a0f5514f3 100644
--- a/lld/ELF/SyntheticSections.cpp
+++ b/lld/ELF/SyntheticSections.cpp
@@ -221,7 +221,7 @@ MipsOptionsSection<ELFT> *MipsOptionsSection<ELFT>::create() {
};
if (Create)
- return new MipsOptionsSection<ELFT>(Reginfo);
+ return make<MipsOptionsSection<ELFT>>(Reginfo);
return nullptr;
}
OpenPOWER on IntegriCloud