Date: Fri, 26 Jun 2015 16:14:00 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r284875 - head/usr.sbin/ctld Message-ID: <201506261614.t5QGE062023992@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Fri Jun 26 16:14:00 2015 New Revision: 284875 URL: https://svnweb.freebsd.org/changeset/base/284875 Log: Plug minor memory leak at r284765. Reported by: Coverity CID: 1308401 MFC after: 3 days Modified: head/usr.sbin/ctld/kernel.c Modified: head/usr.sbin/ctld/kernel.c ============================================================================== --- head/usr.sbin/ctld/kernel.c Fri Jun 26 13:33:46 2015 (r284874) +++ head/usr.sbin/ctld/kernel.c Fri Jun 26 16:14:00 2015 (r284875) @@ -508,6 +508,8 @@ retry_port: name = NULL; STAILQ_FOREACH(port, &devlist.port_list, links) { + if (name) + free(name); if (port->pp == 0 && port->vp == 0) name = checked_strdup(port->port_name); else if (port->vp == 0)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506261614.t5QGE062023992>