aboutsummaryrefslogtreecommitdiffstats
path: root/buffer.c
diff options
context:
space:
mode:
authorDavid Crosby <dave@dafyddcrosby.com>2015-07-10 03:03:17 +0000
committerTatsuya Kinoshita <tats@debian.org>2015-08-11 12:59:27 +0000
commit2582ffa39786739fcc49ee20799c2f4560a3e778 (patch)
treee1329ba61e24ab1855c9a5c63b6252bc5075656b /buffer.c
parentFix resource leak in load_cookies (diff)
downloadw3m-2582ffa39786739fcc49ee20799c2f4560a3e778.tar.gz
w3m-2582ffa39786739fcc49ee20799c2f4560a3e778.zip
Fix resource leak in readBufferCache
Diffstat (limited to '')
-rw-r--r--buffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/buffer.c b/buffer.c
index 5afc26a..f67dd26 100644
--- a/buffer.c
+++ b/buffer.c
@@ -705,6 +705,7 @@ readBufferCache(Buffer *buf)
cache = fopen(buf->savecache, "r");
if (cache == NULL || fread1(clnum, cache) || fread1(tlnum, cache)) {
+ fclose(cache);
buf->savecache = NULL;
return -1;
}