summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/clnt_vc.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-11-16 01:09:25 +0000
committerngie <ngie@FreeBSD.org>2015-11-16 01:09:25 +0000
commitd1d4e816ce49797ab1f23bb48cf5ee69018df284 (patch)
tree4e5e4d6985ae985e5c979066b6ee48d7ea1f7f54 /lib/libc/rpc/clnt_vc.c
parent97443342e5a249ebb1eed68e40fe7e8864ed1781 (diff)
downloadFreeBSD-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_vc.c')
-rw-r--r--lib/libc/rpc/clnt_vc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/rpc/clnt_vc.c b/lib/libc/rpc/clnt_vc.c
index 117cfba..2c18850 100644
--- a/lib/libc/rpc/clnt_vc.c
+++ b/lib/libc/rpc/clnt_vc.c
@@ -666,8 +666,7 @@ clnt_vc_destroy(cl)
(void)_close(ct->ct_fd);
}
XDR_DESTROY(&(ct->ct_xdrs));
- if (ct->ct_addr.buf)
- free(ct->ct_addr.buf);
+ free(ct->ct_addr.buf);
mem_free(ct, sizeof(struct ct_data));
if (cl->cl_netid && cl->cl_netid[0])
mem_free(cl->cl_netid, strlen(cl->cl_netid) +1);
OpenPOWER on IntegriCloud