mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-01 13:20:25 +00:00
[ELF] Don't leak the ".data" section. Fixes an asan failure.
llvm-svn: 286193
This commit is contained in:
parent
f95e706371
commit
089f0e7488
@ -820,7 +820,7 @@ template <class ELFT> void BinaryFile::parse() {
|
||||
StringRef SizeName = Saver.save(Twine(Filename) + "_size");
|
||||
|
||||
auto *Section =
|
||||
new InputSection<ELFT>(SHF_ALLOC, SHT_PROGBITS, 8, Data, ".data");
|
||||
make<InputSection<ELFT>>(SHF_ALLOC, SHT_PROGBITS, 8, Data, ".data");
|
||||
Sections.push_back(Section);
|
||||
|
||||
elf::Symtab<ELFT>::X->addRegular(StartName, STV_DEFAULT, Section, STB_GLOBAL,
|
||||
|
Loading…
Reference in New Issue
Block a user