diff options
Diffstat (limited to 'libmom/ref-destroy.c')
-rw-r--r-- | libmom/ref-destroy.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libmom/ref-destroy.c b/libmom/ref-destroy.c index 3e9266ec..6966bcdc 100644 --- a/libmom/ref-destroy.c +++ b/libmom/ref-destroy.c @@ -23,11 +23,7 @@ void mom_ref_destroy (struct mom_port_ref *obj) { - spin_lock (&obj->lock); - assert (obj->refcnt); mach_port_deallocate (mach_task_self (), obj->port); - obj->refcnt = 0; - spin_unlock (&obj->lock); } |