[llvm-commits] [llvm] r55632 - /llvm/trunk/include/llvm/Support/raw_ostream.h
Nuno Lopes
nunoplopes at sapo.pt
Tue Sep 2 05:06:09 PDT 2008
Author: nlopes
Date: Tue Sep 2 07:06:08 2008
New Revision: 55632
URL: http://llvm.org/viewvc/llvm-project?rev=55632&view=rev
Log:
plug memleak: destroy internal buffer
Modified:
llvm/trunk/include/llvm/Support/raw_ostream.h
Modified: llvm/trunk/include/llvm/Support/raw_ostream.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/raw_ostream.h?rev=55632&r1=55631&r2=55632&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/raw_ostream.h (original)
+++ llvm/trunk/include/llvm/Support/raw_ostream.h Tue Sep 2 07:06:08 2008
@@ -37,7 +37,10 @@
// Start out ready to flush.
OutBufStart = OutBufEnd = OutBufCur = 0;
}
- virtual ~raw_ostream() {}
+
+ virtual ~raw_ostream() {
+ delete [] OutBufStart;
+ }
//===--------------------------------------------------------------------===//
// Configuration Interface
More information about the llvm-commits
mailing list