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:
parent
327b288e5c
commit
a5993a9778
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user