MFC r300666
Call closedir() before returning from fetchListFile() to avoid a leak. Reported by: Coverity CID: 1016697
This commit is contained in:
parent
49dc8a6f53
commit
10ba6fd1f4
@ -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