From b14e0100f5295abd950eef636fa16df181504401 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 10 Aug 2022 22:05:09 +0200 Subject: Do not cache the R/O proxy We cannot properly detect when to release the ro_proxy, so let's just not cache it. --- libpager/object-terminate.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'libpager/object-terminate.c') diff --git a/libpager/object-terminate.c b/libpager/object-terminate.c index 8e8205b5..3e7df167 100644 --- a/libpager/object-terminate.c +++ b/libpager/object-terminate.c @@ -115,11 +115,6 @@ _pager_free_structure (struct pager *p) mach_port_deallocate (mach_task_self (), p->memobjname); p->memobjname = MACH_PORT_NULL; } - if (p->ro_proxy != MACH_PORT_NULL) - { - mach_port_deallocate (mach_task_self (), p->ro_proxy); - p->ro_proxy = MACH_PORT_NULL; - } /* Free the pagemap */ if (p->pagemapsize) -- cgit v1.2.3