aboutsummaryrefslogtreecommitdiffstats
path: root/local.c
diff options
context:
space:
mode:
authorReinhard Max <max@suse.de>2013-12-07 04:39:10 +0000
committerTatsuya Kinoshita <tats@debian.org>2013-12-07 04:39:10 +0000
commit1228eaf1fc2b1824b7bf55757cb55460d0855c4d (patch)
tree27eeae896823b33815cb8059d4a7a151177ae49c /local.c
parentMerge from upstream on 2012-05-22 (diff)
downloadw3m-1228eaf1fc2b1824b7bf55757cb55460d0855c4d.tar.gz
w3m-1228eaf1fc2b1824b7bf55757cb55460d0855c4d.zip
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
Diffstat (limited to 'local.c')
-rw-r--r--local.c1
1 files changed, 1 insertions, 0 deletions
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);