svn commit: r301646 - stable/10/usr.sbin/rpcbind

Garrett Cooper ngie at FreeBSD.org
Wed Jun 8 17:11:43 UTC 2016


Author: ngie
Date: Wed Jun  8 17:11:42 2016
New Revision: 301646
URL: https://svnweb.freebsd.org/changeset/base/301646

Log:
  MFC r300945:
  
  Remove unnecessary caller_uaddr != NULL test before calling free on it

Modified:
  stable/10/usr.sbin/rpcbind/util.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/rpcbind/util.c
==============================================================================
--- stable/10/usr.sbin/rpcbind/util.c	Wed Jun  8 17:10:43 2016	(r301645)
+++ stable/10/usr.sbin/rpcbind/util.c	Wed Jun  8 17:11:42 2016	(r301646)
@@ -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);


More information about the svn-src-all mailing list