mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
plug memleak: destroy internal buffer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e95d90b4c
commit
5b8dbf839b
@ -37,7 +37,10 @@ public:
|
|||||||
// Start out ready to flush.
|
// Start out ready to flush.
|
||||||
OutBufStart = OutBufEnd = OutBufCur = 0;
|
OutBufStart = OutBufEnd = OutBufCur = 0;
|
||||||
}
|
}
|
||||||
virtual ~raw_ostream() {}
|
|
||||||
|
virtual ~raw_ostream() {
|
||||||
|
delete [] OutBufStart;
|
||||||
|
}
|
||||||
|
|
||||||
//===--------------------------------------------------------------------===//
|
//===--------------------------------------------------------------------===//
|
||||||
// Configuration Interface
|
// Configuration Interface
|
||||||
|
Loading…
Reference in New Issue
Block a user