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:
Nuno Lopes 2008-09-02 12:06:08 +00:00
parent 6e95d90b4c
commit 5b8dbf839b

View File

@ -37,7 +37,10 @@ public:
// Start out ready to flush.
OutBufStart = OutBufEnd = OutBufCur = 0;
}
virtual ~raw_ostream() {}
virtual ~raw_ostream() {
delete [] OutBufStart;
}
//===--------------------------------------------------------------------===//
// Configuration Interface