aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Support/raw_ostream.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h
index 69cc43ef27..5ab0988d3e 100644
--- a/include/llvm/Support/raw_ostream.h
+++ b/include/llvm/Support/raw_ostream.h
@@ -37,7 +37,10 @@ public:
// Start out ready to flush.
OutBufStart = OutBufEnd = OutBufCur = 0;
}
- virtual ~raw_ostream() {}
+
+ virtual ~raw_ostream() {
+ delete [] OutBufStart;
+ }
//===--------------------------------------------------------------------===//
// Configuration Interface