Call closedir() before returning from fetchListFile() to avoid a leak.

Reported by:	Coverity
CID:		1016697
MFC after:	1 week
This commit is contained in:
Don Lewis 2016-05-25 07:43:32 +00:00
parent 429bf952ae
commit 65380b5f2f

View File

@ -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);
}