Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 May 2016 06:29:22 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300945 - head/usr.sbin/rpcbind
Message-ID:  <201605290629.u4T6TMMC005864@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605290629.u4T6TMMC005864>