Release UNIX domain socket subsystem lock earlier -- don't need to

hold it over free of unp_addr if we've already removed all references
to unp.
This commit is contained in:
Robert Watson 2004-06-25 20:12:06 +00:00
parent 327b288e5c
commit a5993a9778

View File

@ -656,9 +656,9 @@ unp_detach(unp)
sorflush(unp->unp_socket);
unp_gc();
}
UNP_UNLOCK();
if (unp->unp_addr != NULL)
FREE(unp->unp_addr, M_SONAME);
UNP_UNLOCK();
uma_zfree(unp_zone, unp);
if (vp) {
mtx_lock(&Giant);