diff options
| author | David Blaikie <dblaikie@gmail.com> | 2014-04-25 20:15:16 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2014-04-25 20:15:16 +0000 |
| commit | 37436ed48582f50cbd70c349270363ec979d2dd2 (patch) | |
| tree | c9cf0adee64c3099fe0641172c7e26526eb8cd1d /llvm/tools | |
| parent | 0eb13ce85ae6ae77ed6e20642afc066fc933db7c (diff) | |
| download | bcm5719-llvm-37436ed48582f50cbd70c349270363ec979d2dd2.tar.gz bcm5719-llvm-37436ed48582f50cbd70c349270363ec979d2dd2.zip | |
BugPoint: Fix some memory leaks.
Patch by Kostya Serebryany.
unique_ptr would be nice, but it's a bit too much work for an area I'm
not familiar with, nor invested in, unfortunately.
llvm-svn: 207265
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/bugpoint/BugDriver.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/bugpoint/BugDriver.cpp b/llvm/tools/bugpoint/BugDriver.cpp index 043863a354e..e4f66ed5b31 100644 --- a/llvm/tools/bugpoint/BugDriver.cpp +++ b/llvm/tools/bugpoint/BugDriver.cpp @@ -76,6 +76,10 @@ BugDriver::BugDriver(const char *toolname, bool find_bugs, BugDriver::~BugDriver() { delete Program; + if (Interpreter != SafeInterpreter) + delete Interpreter; + delete SafeInterpreter; + delete gcc; } |

