Bug 1147446: Chromium patch to fix memory leak in Windows sandbox sharedmem_ipc_server.cc. r=aklotz

This commit is contained in:
Bob Owen 2015-03-26 08:06:04 +00:00
parent d5acb1e8d0
commit e7768682a2
2 changed files with 5 additions and 1 deletions

View File

@ -59,6 +59,9 @@ SharedMemIPCServer::~SharedMemIPCServer() {
::CloseHandle(context->pong_event);
delete context;
}
if (client_control_)
::UnmapViewOfFile(client_control_);
}
bool SharedMemIPCServer::Init(void* shared_mem, uint32 shared_size,
@ -230,7 +233,7 @@ bool SharedMemIPCServer::InvokeCallback(const ServerControl* service_context,
return false;
uint32 tag = params->GetTag();
COMPILE_ASSERT(0 == INVALID_TYPE, Incorrect_type_enum);
static_assert(0 == INVALID_TYPE, "incorrect type enum");
IPCParams ipc_params = {0};
ipc_params.ipc_tag = tag;

View File

@ -1,3 +1,4 @@
Chromium Commit Directory / File (relative to security/sandbox/)
---------------------------------------- ------------------------------------------------
df7cc6c04725630dd4460f29d858a77507343b24 chromium
b533d6533585377edd63ec6500469f6c4fba602a chromium/sandbox/win/src/sharedmem_ipc_server.cc