aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Crosby <dave@dafyddcrosby.com>2015-07-10 06:02:12 +0000
committerTatsuya Kinoshita <tats@debian.org>2015-08-11 12:59:27 +0000
commit2d9d2494fc95de1c61f347a1a20297b8fa847fd3 (patch)
treecb22420d96c863af426c94bed1d08e635c86af4f
parentFix resource leak in AuthDigestCred (diff)
downloadw3m-2d9d2494fc95de1c61f347a1a20297b8fa847fd3.tar.gz
w3m-2d9d2494fc95de1c61f347a1a20297b8fa847fd3.zip
Move fclose to fix dereference after null check (Coverity)
Diffstat (limited to '')
-rw-r--r--w3mbookmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/w3mbookmark.c b/w3mbookmark.c
index 4ffc630..a306f26 100644
--- a/w3mbookmark.c
+++ b/w3mbookmark.c
@@ -79,9 +79,9 @@ print_bookmark_panel(char *bmark, char *url, char *title, char *charset)
}
}
printf("</select>\n");
+ fclose(f);
}
printf(bkmark_src2, html_quote(url), html_quote(title));
- fclose(f);
}
/* create new bookmark */