Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1968)

Unified Diff: sandbox/win/src/sharedmem_ipc_server.cc

Issue 831423002: Fix sandbox IPC shared memory leak. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/sharedmem_ipc_server.cc
diff --git a/sandbox/win/src/sharedmem_ipc_server.cc b/sandbox/win/src/sharedmem_ipc_server.cc
index 3b5fe6c2d3a6700cec8c8d98aa51a9b84ba1db85..0e7629b5789330bce78b469683b0df4a34eb5636 100644
--- a/sandbox/win/src/sharedmem_ipc_server.cc
+++ b/sandbox/win/src/sharedmem_ipc_server.cc
@@ -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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698