svn commit: r300945 - head/usr.sbin/rpcbind

Garrett Cooper ngie at FreeBSD.org
Sun May 29 06:29:23 UTC 2016


Author: ngie
Date: Sun May 29 06:29:22 2016
New Revision: 300945
URL: https://svnweb.freebsd.org/changeset/base/300945

Log:
  Remove unnecessary caller_uaddr != NULL test before calling free on it
  
  MFC after: 3 days
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/usr.sbin/rpcbind/util.c

Modified: head/usr.sbin/rpcbind/util.c
==============================================================================
--- head/usr.sbin/rpcbind/util.c	Sun May 29 06:20:36 2016	(r300944)
+++ head/usr.sbin/rpcbind/util.c	Sun May 29 06:29:22 2016	(r300945)
@@ -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-head mailing list