summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/ELFYAML.cpp
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
commit62fce0a975fe5e64154a6c9d388fc46133d68ddc (patch)
tree6f74ad6205eabc25ddad82b855a53af6aebac389 /llvm/lib/Object/ELFYAML.cpp
parent9302fbf0aeed1af6bc91cefd6b65c3a268d1fb9e (diff)
downloadbcm5719-llvm-62fce0a975fe5e64154a6c9d388fc46133d68ddc.tar.gz
bcm5719-llvm-62fce0a975fe5e64154a6c9d388fc46133d68ddc.zip
[yaml2obj][ELF] Add a virtual destructor to the ELFYAML::Section class
to prevent memory leaks. llvm-svn: 206969
Diffstat (limited to 'llvm/lib/Object/ELFYAML.cpp')
-rw-r--r--llvm/lib/Object/ELFYAML.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Object/ELFYAML.cpp b/llvm/lib/Object/ELFYAML.cpp
index 59d9c06f370..f7ba237883a 100644
--- a/llvm/lib/Object/ELFYAML.cpp
+++ b/llvm/lib/Object/ELFYAML.cpp
@@ -14,6 +14,9 @@
#include "llvm/Object/ELFYAML.h"
namespace llvm {
+
+ELFYAML::Section ::~Section() {}
+
namespace yaml {
void
OpenPOWER on IntegriCloud