]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFstable/10 r303692:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 3 Aug 2016 01:26:02 +0000 (01:26 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 3 Aug 2016 01:26:02 +0000 (01:26 +0000)
commit30ed278c4065511fbb53d24cdcb5b51c66d60332
tree75c0e6b30776740ee21a91aeb844e07efa254f32
parent8b311437aef2c9d2684ab7fd2730efab6a7f833e
MFstable/10 r303692:

MFstable/11 r303691:

MFC r302550,r302551,r302552,r302553:

r302550:

Deobfuscate cleanup path in clnt_dg_create(..)

Similar to r300836 and r301800, cl and cu will always be non-NULL as they're
allocated using the mem_alloc routines, which always use
`malloc(..., M_WAITOK)`.

Deobfuscating the cleanup path fixes a leak where if cl was NULL and
cu was not, cu would not be free'd, and also removes a duplicate test for
cl not being NULL.

CID: 10070331007344

r302551:

Deobfuscate cleanup path in clnt_vc_create(..)

Similar to r300836, r301800, and r302550, cl and ct will always
be non-NULL as they're allocated using the mem_alloc routines,
which always use `malloc(..., M_WAITOK)`.

CID: 1007342

r302552:

Convert `svc_xprt_alloc(..)` and `svc_xprt_free(..)`'s prototypes to
ANSI C style prototypes

r302553:

Don't test for xpt not being NULL before calling svc_xprt_free(..)

svc_xprt_alloc(..) will always return initialized memory as it uses
mem_alloc(..) under the covers, which uses malloc(.., M_WAITOK, ..).

CID: 1007341

git-svn-id: svn://svn.freebsd.org/base/stable/9@303695 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/rpc/clnt_dg.c
sys/rpc/clnt_vc.c
sys/rpc/svc.c
sys/rpc/svc_dg.c