]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r301800:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 8 Jul 2016 20:30:20 +0000 (20:30 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 8 Jul 2016 20:30:20 +0000 (20:30 +0000)
commit4d1603db02f967c705022f2c70efefdba6304285
tree9ba2a709d94b60df45e8337f43930fabfbc5aa90
parente8a87dace07f3570d5b1e6724caedfb2a0383fb3
MFC r301800:

Deobfuscate cleanup path in clnt_bck_create(..)

Similar to r300836, cl and ct 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
ct was not, ct would not be free'd, and also removes a duplicate test for
cl not being NULL.

CID: 1229999

git-svn-id: svn://svn.freebsd.org/base/stable/10@302451 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/rpc/clnt_bck.c