[llvm-commits] CVS: llvm/lib/Support/MemoryBuffer.cpp
Chris Lattner
sabre at nondot.org
Thu May 10 17:43:44 PDT 2007
Changes in directory llvm/lib/Support:
MemoryBuffer.cpp updated: 1.6 -> 1.7
---
Log message:
fix a memory leak
---
Diffs of the changes: (+1 -1)
MemoryBuffer.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Support/MemoryBuffer.cpp
diff -u llvm/lib/Support/MemoryBuffer.cpp:1.6 llvm/lib/Support/MemoryBuffer.cpp:1.7
--- llvm/lib/Support/MemoryBuffer.cpp:1.6 Mon May 7 10:21:46 2007
+++ llvm/lib/Support/MemoryBuffer.cpp Thu May 10 19:43:26 2007
@@ -39,7 +39,7 @@
BufferEnd = BufferStart+Size;
memcpy(const_cast<char*>(BufferStart), BufStart, Size);
*const_cast<char*>(BufferEnd) = 0; // Null terminate buffer.
- MustDeleteBuffer = false;
+ MustDeleteBuffer = true;
}
/// init - Initialize this MemoryBuffer as a reference to externally allocated
More information about the llvm-commits
mailing list