mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-01 03:33:42 +00:00
fix a memory leak
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36981 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
39253260b9
commit
a24b04e9e5
@ -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 = false;
|
||||
MustDeleteBuffer = true;
|
||||
}
|
||||
|
||||
/// init - Initialize this MemoryBuffer as a reference to externally allocated
|
||||
|
Loading…
x
Reference in New Issue
Block a user