Date: Tue, 10 Apr 2018 03:15:07 +0000 (UTC) From: Xin LI <delphij@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: r332348 - stable/10/usr.sbin/rpcbind Message-ID: <201804100315.w3A3F7Tk054790@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Tue Apr 10 03:15:07 2018 New Revision: 332348 URL: https://svnweb.freebsd.org/changeset/base/332348 Log: MFC r331180: Plug a possible memory leak. Modified: stable/10/usr.sbin/rpcbind/rpcbind.c Directory Properties: stable/10/ (props changed) Modified: stable/10/usr.sbin/rpcbind/rpcbind.c ============================================================================== --- stable/10/usr.sbin/rpcbind/rpcbind.c Tue Apr 10 03:12:22 2018 (r332347) +++ stable/10/usr.sbin/rpcbind/rpcbind.c Tue Apr 10 03:15:07 2018 (r332348) @@ -548,6 +548,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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804100315.w3A3F7Tk054790>