diff options
author | ngie <ngie@FreeBSD.org> | 2015-11-16 01:09:25 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-11-16 01:09:25 +0000 |
commit | d1d4e816ce49797ab1f23bb48cf5ee69018df284 (patch) | |
tree | 4e5e4d6985ae985e5c979066b6ee48d7ea1f7f54 /lib/libc/rpc/clnt_bcast.c | |
parent | 97443342e5a249ebb1eed68e40fe7e8864ed1781 (diff) | |
download | FreeBSD-src-d1d4e816ce49797ab1f23bb48cf5ee69018df284.zip FreeBSD-src-d1d4e816ce49797ab1f23bb48cf5ee69018df284.tar.gz |
MFC r290253:
Remove unnecessary `if (x)` tests before calling `free(x)`; free(3)
already employs this check
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'lib/libc/rpc/clnt_bcast.c')
-rw-r--r-- | lib/libc/rpc/clnt_bcast.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libc/rpc/clnt_bcast.c b/lib/libc/rpc/clnt_bcast.c index 6ee1f90..5f78dce 100644 --- a/lib/libc/rpc/clnt_bcast.c +++ b/lib/libc/rpc/clnt_bcast.c @@ -631,13 +631,10 @@ rpc_broadcast_exp(prog, vers, proc, xargs, argsp, xresults, resultsp, } /* The giant for loop */ done_broad: - if (inbuf) - (void) free(inbuf); - if (outbuf) - (void) free(outbuf); + free(inbuf); + free(outbuf); #ifdef PORTMAP - if (outbuf_pmap) - (void) free(outbuf_pmap); + free(outbuf_pmap); #endif /* PORTMAP */ for (i = 0; i < fdlistno; i++) { (void)_close(fdlist[i].fd); |