summaryrefslogtreecommitdiff
path: root/libmom/ref-destroy.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-25 21:34:28 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-25 21:34:28 +0000
commitd23a87a2d777775cc12ac2091e3ee2f5f651e571 (patch)
tree7b83b32c83c0cbae2cf2e1bfee4404442b0ce3c8 /libmom/ref-destroy.c
parentbce49690ea50e1984db99f4e3fbf82ccbff407aa (diff)
(mom_ref_destroy): Omit uses of deleted members of struct mom_port_ref.c.
Diffstat (limited to 'libmom/ref-destroy.c')
-rw-r--r--libmom/ref-destroy.c4
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);
}