diff options
author | ngie <ngie@FreeBSD.org> | 2016-07-08 20:30:20 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-07-08 20:30:20 +0000 |
commit | 450eb8400182e87c121f9f0746d9d8fa7f2cb04d (patch) | |
tree | 9ba2a709d94b60df45e8337f43930fabfbc5aa90 /sys/compat/linux/linux_fork.c | |
parent | 69867bad8a0afbaff921922b0983698c89dd77fc (diff) | |
download | FreeBSD-src-450eb8400182e87c121f9f0746d9d8fa7f2cb04d.zip FreeBSD-src-450eb8400182e87c121f9f0746d9d8fa7f2cb04d.tar.gz |
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
Diffstat (limited to 'sys/compat/linux/linux_fork.c')
0 files changed, 0 insertions, 0 deletions