Fix a directory descriptor leak in loadLocalDir

Patch from openSUSE on 2009-09-07.
Origin: https://build.opensuse.org/package/view_file/openSUSE:Factory/w3m/w3m-closedir.patch
Bug-Novell: https://bugzilla.novell.com/show_bug.cgi?id=531675
This commit is contained in:
Reinhard Max
2013-12-07 13:39:10 +09:00
committed by Tatsuya Kinoshita
parent dbd52ac2ca
commit 1228eaf1fc

View File

@@ -109,6 +109,7 @@ loadLocalDir(char *dname)
n++;
}
}
closedir(d);
if (multicolList) {
l = COLS / (maxlen + 2);