summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpcbind/util.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-05-29 06:29:22 +0000
committerngie <ngie@FreeBSD.org>2016-05-29 06:29:22 +0000
commit9cd463f0ff848ae4bd9f0bf04c6348c082567862 (patch)
treea0cb6f882335da49bf5dce43ebbc1dc8c01822c4 /usr.sbin/rpcbind/util.c
parentdd3acf34f8eaf0a82a07bc0ea332fce0391768e0 (diff)
downloadFreeBSD-src-9cd463f0ff848ae4bd9f0bf04c6348c082567862.zip
FreeBSD-src-9cd463f0ff848ae4bd9f0bf04c6348c082567862.tar.gz
Remove unnecessary caller_uaddr != NULL test before calling free on it
MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'usr.sbin/rpcbind/util.c')
-rw-r--r--usr.sbin/rpcbind/util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/rpcbind/util.c b/usr.sbin/rpcbind/util.c
index 8cf7a6e..814a379 100644
--- a/usr.sbin/rpcbind/util.c
+++ b/usr.sbin/rpcbind/util.c
@@ -293,8 +293,7 @@ found:
ret = taddr2uaddr(nconf, &tbuf);
freeit:
- if (caller_uaddr != NULL)
- free(caller_uaddr);
+ free(caller_uaddr);
if (hint_nbp != NULL) {
free(hint_nbp->buf);
free(hint_nbp);
OpenPOWER on IntegriCloud