⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 184004 in webkit


Ignore:
Timestamp:
May 8, 2015, 12:07:01 PM (11 years ago)
Author:
andersca@apple.com
Message:

Fix ProcessLauncher port leak
https://bugs.webkit.org/show_bug.cgi?id=144807
rdar://problem/20593291

Reviewed by Sam Weinig.

  • UIProcess/Launcher/mac/ProcessLauncherMac.mm:

(WebKit::connectToService):
xpc_dictionary_set_mach_send increments the send right count so make sure to
balance it with a call to mach_port_deallocate.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r183999 r184004  
     12015-05-08  Anders Carlsson  <andersca@apple.com>
     2
     3        Fix ProcessLauncher port leak
     4        https://bugs.webkit.org/show_bug.cgi?id=144807
     5        rdar://problem/20593291
     6
     7        Reviewed by Sam Weinig.
     8
     9        * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
     10        (WebKit::connectToService):
     11        xpc_dictionary_set_mach_send increments the send right count so make sure to
     12        balance it with a call to mach_port_deallocate.
     13
    1142015-05-08  Beth Dakin  <bdakin@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/Launcher/mac/ProcessLauncherMac.mm

    r183209 r184004  
    258258    xpc_dictionary_set_string(bootstrapMessage.get(), "message-name", "bootstrap");
    259259    xpc_dictionary_set_string(bootstrapMessage.get(), "framework-executable-path", [[[NSBundle bundleWithIdentifier:@"com.apple.WebKit"] executablePath] fileSystemRepresentation]);
     260
    260261    xpc_dictionary_set_mach_send(bootstrapMessage.get(), "server-port", listeningPort);
     262    mach_port_deallocate(mach_task_self(), listeningPort);
     263
    261264    xpc_dictionary_set_string(bootstrapMessage.get(), "client-identifier", clientIdentifier.data());
    262265    xpc_dictionary_set_string(bootstrapMessage.get(), "ui-process-name", [[[NSProcessInfo processInfo] processName] UTF8String]);
Note: See TracChangeset for help on using the changeset viewer.