Author: delphij
Date: Tue Apr 10 03:12:22 2018
New Revision: 332347
URL: https://svnweb.freebsd.org/changeset/base/332347

Log:
  MFC r331180: Plug a possible memory leak.

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

Modified: stable/11/usr.sbin/rpcbind/rpcbind.c
==============================================================================
--- stable/11/usr.sbin/rpcbind/rpcbind.c        Tue Apr 10 02:49:53 2018        
(r332346)
+++ stable/11/usr.sbin/rpcbind/rpcbind.c        Tue Apr 10 03:12:22 2018        
(r332347)
@@ -550,6 +550,8 @@ init_transport(struct netconfig *nconf)
                pml->pml_map.pm_port = PMAPPORT;
                if (strcmp(nconf->nc_proto, NC_TCP) == 0) {
                        if (tcptrans[0]) {
+                               free(pml);
+                               pml = NULL;
                                syslog(LOG_ERR,
                                "cannot have more than one TCP transport");
                                goto error;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to