svn commit: r301647 - stable/9/usr.sbin/rpcbind

Garrett Cooper ngie at FreeBSD.org
Wed Jun 8 17:12:38 UTC 2016


Author: ngie
Date: Wed Jun  8 17:12:37 2016
New Revision: 301647
URL: https://svnweb.freebsd.org/changeset/base/301647

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

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

Modified: stable/9/usr.sbin/rpcbind/util.c
==============================================================================
--- stable/9/usr.sbin/rpcbind/util.c	Wed Jun  8 17:11:42 2016	(r301646)
+++ stable/9/usr.sbin/rpcbind/util.c	Wed Jun  8 17:12:37 2016	(r301647)
@@ -311,8 +311,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