1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

[yaml2obj][ELF] Add a virtual destructor to the ELFYAML::Section class

to prevent memory leaks.

llvm-svn: 206969
This commit is contained in:
Simon Atanasyan 2014-04-23 11:10:55 +00:00
parent 72105b1195
commit 6d57f42c12
2 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -14,6 +14,9 @@
#include "llvm/Object/ELFYAML.h"
namespace llvm {
ELFYAML::Section ::~Section() {}
namespace yaml {
void