This is an archive of the discontinued LLVM Phabricator instance.

Do not leak the Mach host port in sys::getHostCPUName()
ClosedPublic

Authored by rsesek on Aug 30 2018, 3:09 PM.

Details

Summary

Patch by: rsesek

Diff Detail

Event Timeline

rsesek created this revision.Aug 30 2018, 3:09 PM
kristina added a subscriber: kristina.EditedSep 3 2018, 5:26 PM

Good catch, mach_host_self() always obtains a new send right for the host port. The naming doesn't match the rest of the file style but that's from before, would be nice to squeeze that change in if Chandler is okay with style change going in with a functional change. Regardless, LGTM.

kristina accepted this revision.Sep 4 2018, 3:51 AM
This revision is now accepted and ready to land.Sep 4 2018, 3:51 AM
kristina closed this revision.Sep 4 2018, 4:29 AM