summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2014-04-23 11:10:55 +0000
committerSimon Atanasyan <simon@atanasyan.com>2014-04-23 11:10:55 +0000
commite8276ef4180eef001cbc502148b673b848433828 (patch)
tree0e4388649f8a39183881f3621c8ef4d68ecff1a2 /include
parente42618b4bc5ccc80e9e5c4dda8ad49653b415d52 (diff)
downloadllvm-e8276ef4180eef001cbc502148b673b848433828.tar.gz
llvm-e8276ef4180eef001cbc502148b673b848433828.tar.bz2
llvm-e8276ef4180eef001cbc502148b673b848433828.tar.xz
[yaml2obj][ELF] Add a virtual destructor to the ELFYAML::Section class
to prevent memory leaks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Object/ELFYAML.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Object/ELFYAML.h b/include/llvm/Object/ELFYAML.h
index 38707776ab..26bfaaed6d 100644
--- a/include/llvm/Object/ELFYAML.h
+++ b/include/llvm/Object/ELFYAML.h
@@ -79,6 +79,7 @@ struct Section {
StringRef Info;
llvm::yaml::Hex64 AddressAlign;
Section(SectionKind Kind) : Kind(Kind) {}
+ virtual ~Section();
};
struct RawContentSection : Section {
object::yaml::BinaryRef Content;