diff options
author | ngie <ngie@FreeBSD.org> | 2016-05-29 06:01:18 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-05-29 06:01:18 +0000 |
commit | acc0b5542a72ccf66ecd9c3452c5448d94d964cf (patch) | |
tree | f9eb7033405d9675ed9f2a8109e480d81af98af0 /usr.sbin/rpcbind/check_bound.c | |
parent | 3a9c6c760d23e0c8424cf643d93b157fc1b97e39 (diff) | |
download | FreeBSD-src-acc0b5542a72ccf66ecd9c3452c5448d94d964cf.zip FreeBSD-src-acc0b5542a72ccf66ecd9c3452c5448d94d964cf.tar.gz |
Remove a useless if (x != NULL) check before calling free on allocated_uaddr
MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'usr.sbin/rpcbind/check_bound.c')
-rw-r--r-- | usr.sbin/rpcbind/check_bound.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/rpcbind/check_bound.c b/usr.sbin/rpcbind/check_bound.c index 23c38bc..b08979d 100644 --- a/usr.sbin/rpcbind/check_bound.c +++ b/usr.sbin/rpcbind/check_bound.c @@ -219,8 +219,7 @@ mergeaddr(SVCXPRT *xprt, char *netid, char *uaddr, char *saddr) fprintf(stderr, "mergeaddr: uaddr = %s, merged uaddr = %s\n", uaddr, m_uaddr); #endif - if (allocated_uaddr != NULL) - free(allocated_uaddr); + free(allocated_uaddr); return (m_uaddr); } |