From 1228eaf1fc2b1824b7bf55757cb55460d0855c4d Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Sat, 7 Dec 2013 13:39:10 +0900 Subject: 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 --- local.c | 1 + 1 file changed, 1 insertion(+) (limited to 'local.c') diff --git a/local.c b/local.c index f5a73a2..b1b0795 100644 --- a/local.c +++ b/local.c @@ -109,6 +109,7 @@ loadLocalDir(char *dname) n++; } } + closedir(d); if (multicolList) { l = COLS / (maxlen + 2); -- cgit v1.2.3