PATCH: fix leaks in bugpoint
David Blaikie
dblaikie at gmail.com
Fri Apr 25 13:22:28 PDT 2014
Looks reasonable - committed in r207265. Thanks!
On Fri, Apr 25, 2014 at 4:48 AM, Kostya Serebryany <kcc at google.com> wrote:
> 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
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
More information about the llvm-commits
mailing list