diff options
author | David Crosby <dave@dafyddcrosby.com> | 2015-07-10 03:03:17 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2015-08-11 12:59:27 +0000 |
commit | 2582ffa39786739fcc49ee20799c2f4560a3e778 (patch) | |
tree | e1329ba61e24ab1855c9a5c63b6252bc5075656b /buffer.c | |
parent | Fix resource leak in load_cookies (diff) | |
download | w3m-2582ffa39786739fcc49ee20799c2f4560a3e778.tar.gz w3m-2582ffa39786739fcc49ee20799c2f4560a3e778.zip |
Fix resource leak in readBufferCache
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |