diff options
author | David Crosby <dave@dafyddcrosby.com> | 2015-07-10 02:47:34 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2015-08-11 12:59:27 +0000 |
commit | 4086117d9c11deb46992e6487fd1764eb0207c64 (patch) | |
tree | 430f7f30f7e7b6e458423e7fd1c9ba18de1305e6 | |
parent | Fix resource leak (diff) | |
download | w3m-4086117d9c11deb46992e6487fd1764eb0207c64.tar.gz w3m-4086117d9c11deb46992e6487fd1764eb0207c64.zip |
Fix resource leak
Diffstat (limited to '')
-rw-r--r-- | frame.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -895,8 +895,10 @@ renderFrame(Buffer *Cbuf, int force_reload) /* * if (Cbuf->frameQ != NULL) fset = Cbuf->frameQ->frameset; else */ fset = Cbuf->frameset; - if (fset == NULL || createFrameFile(fset, f, Cbuf, 0, force_reload) < 0) + if (fset == NULL || createFrameFile(fset, f, Cbuf, 0, force_reload) < 0) { + fclose(f); return NULL; + } fclose(f); flag = RG_FRAME; if ((Cbuf->currentURL).is_nocache) |