| 321 | } |
| 322 | |
| 323 | static __result_use_check bool |
| 324 | unp_pcb_rele(struct unpcb *unp) |
| 325 | { |
| 326 | bool ret; |
| 327 | |
| 328 | UNP_PCB_LOCK_ASSERT(unp); |
| 329 | |
| 330 | if ((ret = refcount_release(&unp->unp_refcount))) { |
| 331 | UNP_PCB_UNLOCK(unp); |
| 332 | UNP_PCB_LOCK_DESTROY(unp); |
| 333 | uma_zfree(unp_zone, unp); |
| 334 | } |
| 335 | return (ret); |
| 336 | } |
| 337 | |
| 338 | static void |
| 339 | unp_pcb_rele_notlast(struct unpcb *unp) |
no test coverage detected