Date: Wed, 1 Jun 2016 17:45:00 +0000 (UTC) From: Don Lewis <truckman@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: r301154 - stable/10/lib/libfetch Message-ID: <201606011745.u51Hj0Ai060365@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: truckman Date: Wed Jun 1 17:45:00 2016 New Revision: 301154 URL: https://svnweb.freebsd.org/changeset/base/301154 Log: MFC r300666 Call closedir() before returning from fetchListFile() to avoid a leak. Reported by: Coverity CID: 1016697 Modified: stable/10/lib/libfetch/file.c Directory Properties: stable/10/ (props changed) Modified: stable/10/lib/libfetch/file.c ============================================================================== --- stable/10/lib/libfetch/file.c Wed Jun 1 17:43:04 2016 (r301153) +++ stable/10/lib/libfetch/file.c Wed Jun 1 17:45:00 2016 (r301154) @@ -149,5 +149,6 @@ fetchListFile(struct url *u, const char fetch_add_entry(&ue, &size, &len, de->d_name, &us); } + closedir(dir); return (ue); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606011745.u51Hj0Ai060365>