[Lldb-commits] [lldb] r166276 - /lldb/branches/windows/source/Core/DataBufferMemoryMap.cpp
Carlo Kok
ck at remobjects.com
Fri Oct 19 02:08:40 PDT 2012
Author: carlokok
Date: Fri Oct 19 04:08:40 2012
New Revision: 166276
URL: http://llvm.org/viewvc/llvm-project?rev=166276&view=rev
Log:
Windows fix: DataBufferMemoryMap didn't release the memory map handle if MapViewOfFile failed.
Modified:
lldb/branches/windows/source/Core/DataBufferMemoryMap.cpp
Modified: lldb/branches/windows/source/Core/DataBufferMemoryMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/windows/source/Core/DataBufferMemoryMap.cpp?rev=166276&r1=166275&r2=166276&view=diff
==============================================================================
--- lldb/branches/windows/source/Core/DataBufferMemoryMap.cpp (original)
+++ lldb/branches/windows/source/Core/DataBufferMemoryMap.cpp Fri Oct 19 04:08:40 2012
@@ -196,6 +196,7 @@
if (!m_data) {
Error error;
error.SetErrorToErrno ();
+ CloseHandle(m_mmap_handle);
return 0;
}
m_mmap_size = length;
More information about the lldb-commits
mailing list