Fix sanitizer-x86_64-linux-fast failure that was not deleting the bindtable.
authorKevin Enderby <enderby@apple.com>
Wed, 1 Apr 2015 21:50:45 +0000 (21:50 +0000)
committerKevin Enderby <enderby@apple.com>
Wed, 1 Apr 2015 21:50:45 +0000 (21:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233856 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-objdump/MachODump.cpp

index b16506f903f13007d435074a468ed6d8528effbd..7c8dcb2af4da26243b558d315e351c4467913502 100644 (file)
@@ -3834,6 +3834,9 @@ static void printObjc2_64bit_MetaData(MachOObjectFile *O, bool verbose) {
     info.S = II;
     print_image_info64(II, &info);
   }
+
+  if (info.bindtable != nullptr)
+    delete info.bindtable;
 }
 
 static void printObjc2_32bit_MetaData(MachOObjectFile *O, bool verbose) {