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

Garrett Cooper ngie at FreeBSD.org
Wed Jun 8 17:09:48 UTC 2016


Author: ngie
Date: Wed Jun  8 17:09:47 2016
New Revision: 301644
URL: https://svnweb.freebsd.org/changeset/base/301644

Log:
  MFC r300942:
  
  Remove a useless if (x != NULL) check before calling free on allocated_uaddr

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

Modified: stable/10/usr.sbin/rpcbind/check_bound.c
==============================================================================
--- stable/10/usr.sbin/rpcbind/check_bound.c	Wed Jun  8 17:04:15 2016	(r301643)
+++ stable/10/usr.sbin/rpcbind/check_bound.c	Wed Jun  8 17:09:47 2016	(r301644)
@@ -220,8 +220,7 @@ mergeaddr(SVCXPRT *xprt, char *netid, ch
 		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);
 }
 


More information about the svn-src-all mailing list