mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-20 08:51:04 +00:00

SharedMemory::FindFreeAddressSpace will bogusly try to do `munmap(MAP_FAILED, size)` if the preceding `mmap` fails. This patch guards the `munmap` with a failure check. Differential Revision: https://phabricator.services.mozilla.com/D192799