PATCH: fix leaks in bugpoint

Kostya Serebryany kcc at google.com
Fri Apr 25 04:48:48 PDT 2014


Please review.
I am trying to make "check-llvm" leak-clean, see
http://llvm.org/bugs/show_bug.cgi?id=19521
This is one of the 3  remaining leaks in check-llvm
(the two others are PR19553 and PR19554; lots of leaks remain in clang)

Index: tools/bugpoint/BugDriver.cpp
===================================================================
--- tools/bugpoint/BugDriver.cpp        (revision 207219)
+++ tools/bugpoint/BugDriver.cpp        (working copy)
@@ -76,6 +76,10 @@

 BugDriver::~BugDriver() {
   delete Program;
+  if (Interpreter != SafeInterpreter)
+    delete Interpreter;
+  delete SafeInterpreter;
+  delete gcc;
 }



--kcc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140425/89dd12bd/attachment.html>


More information about the llvm-commits mailing list