View | Details | Raw Unified | Return to bug 255869 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/kern/uipc_socket.c (-1 / +1 lines)
Lines 476-482 sodealloc(struct socket *so) Link Here
476
#endif
476
#endif
477
	hhook_run_socket(so, NULL, HHOOK_SOCKET_CLOSE);
477
	hhook_run_socket(so, NULL, HHOOK_SOCKET_CLOSE);
478
478
479
	crfree(so->so_cred);
480
	khelp_destroy_osd(&so->osd);
479
	khelp_destroy_osd(&so->osd);
481
	if (SOLISTENING(so)) {
480
	if (SOLISTENING(so)) {
482
		if (so->sol_accept_filter != NULL)
481
		if (so->sol_accept_filter != NULL)
Lines 493-498 sodealloc(struct socket *so) Link Here
493
		SOCKBUF_LOCK_DESTROY(&so->so_snd);
492
		SOCKBUF_LOCK_DESTROY(&so->so_snd);
494
		SOCKBUF_LOCK_DESTROY(&so->so_rcv);
493
		SOCKBUF_LOCK_DESTROY(&so->so_rcv);
495
	}
494
	}
495
	crfree(so->so_cred);
496
	mtx_destroy(&so->so_lock);
496
	mtx_destroy(&so->so_lock);
497
	uma_zfree(socket_zone, so);
497
	uma_zfree(socket_zone, so);
498
}
498
}

Return to bug 255869