svn commit: r301154 - stable/10/lib/libfetch
Don Lewis
truckman at FreeBSD.org
Wed Jun 1 17:45:01 UTC 2016
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);
}
More information about the svn-src-stable
mailing list