Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jun 2016 17:12:37 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r301647 - stable/9/usr.sbin/rpcbind
Message-ID:  <201606081712.u58HCb88023534@repo.freebsd.org>

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



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