DescriptionFix leak of PlatformHandleDispatchers in Mojo IPC
PassWrappedPlatformHandle does not close the MojoHandle.
The destructor of ScopedHandleBase will however close it.
The problem with this code was that it called release()
on the ScopedHandle, preventing the destructor from being
called, and thus also the MojoHandle from being closed.
This leaves the PlatformHandleDispatcher associated with
the MojoHandle alive in mojo::system::Core::handle_table_
By calling reset() instead the MojoHandle is closed, and
the leak is fixed.
R=morrita@chromium.org, viettrungluu@chromium.org, agl@chromium.org
BUG=None
Committed: https://crrev.com/b2134362e27459f1098a35effedad91e2d553192
Cr-Commit-Position: refs/heads/master@{#334197}
Patch Set 1 #
Messages
Total messages: 10 (3 generated)
|