mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207265 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9c6a820aa7
commit
5ed33e08f3
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user