projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3925326
)
fix a memory leak
author
Chris Lattner
<sabre@nondot.org>
Fri, 11 May 2007 00:43:26 +0000
(
00:43
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 11 May 2007 00:43:26 +0000
(
00:43
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36981
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/MemoryBuffer.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/MemoryBuffer.cpp
b/lib/Support/MemoryBuffer.cpp
index 85bc36bcb6680baef689856f3f325218f3155333..0e857021a486915304e68ddde5a22de6ac5ad6f7 100644
(file)
--- a/
lib/Support/MemoryBuffer.cpp
+++ b/
lib/Support/MemoryBuffer.cpp
@@
-39,7
+39,7
@@
void MemoryBuffer::initCopyOf(const char *BufStart, const char *BufEnd) {
BufferEnd = BufferStart+Size;
memcpy(const_cast<char*>(BufferStart), BufStart, Size);
*const_cast<char*>(BufferEnd) = 0; // Null terminate buffer.
- MustDeleteBuffer =
fals
e;
+ MustDeleteBuffer =
tru
e;
}
/// init - Initialize this MemoryBuffer as a reference to externally allocated