Date: Wed, 8 Jun 2016 17:09:47 +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-10@freebsd.org Subject: svn commit: r301644 - stable/10/usr.sbin/rpcbind Message-ID: <201606081709.u58H9lox019724@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606081709.u58H9lox019724>