mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
MFC r300666
Call closedir() before returning from fetchListFile() to avoid a leak. Reported by: Coverity CID: 1016697
This commit is contained in:
parent
dee32aa9c8
commit
44ffc0c54a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=301154
@ -149,5 +149,6 @@ fetchListFile(struct url *u, const char *flags __unused)
|
||||
fetch_add_entry(&ue, &size, &len, de->d_name, &us);
|
||||
}
|
||||
|
||||
closedir(dir);
|
||||
return (ue);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user