]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Restructure spx_attach() to properly free memory in the event that one
authorRobert Watson <rwatson@FreeBSD.org>
Sat, 25 Mar 2006 15:03:29 +0000 (15:03 +0000)
committerRobert Watson <rwatson@FreeBSD.org>
Sat, 25 Mar 2006 15:03:29 +0000 (15:03 +0000)
commit92676aa9623aa495954aca6568a25b22dcafaf7b
tree11842e9420815dabd22cfaa6cdb3c5d9c18bdff4
parente7b7fc0ecd8485476df5b5b8831f1eec3ec227f4
Restructure spx_attach() to properly free memory in the event that one
of its allocations fails.  Allocate the ipxp last so as to avoid having
to free it if another allocation goes wrong.

Normalize retrieval of ipxp and cb from socket in spx_sp_attach(), and
add assertions.

MFC after: 1 month
sys/netipx/spx_usrreq.c