summaryrefslogtreecommitdiff
path: root/imap
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2016-06-15 08:04:58 -0600
committerEduardo Chappa <chappa@washington.edu>2016-06-15 08:04:58 -0600
commit645fe0488129435c0b01e9fdc134cc71d6fb8579 (patch)
treed0dfe29e687e6db504d3432fd112ad85c36f3745 /imap
parent88c09c6f0af538d8dfad2cf2b7fb633339d0afc9 (diff)
downloadalpine-645fe0488129435c0b01e9fdc134cc71d6fb8579.tar.xz
* Add a missing call to fclose in newsrc.c. Reported by David
Binderman.
Diffstat (limited to 'imap')
-rw-r--r--imap/src/c-client/newsrc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/imap/src/c-client/newsrc.c b/imap/src/c-client/newsrc.c
index ce694c61..8036b1ac 100644
--- a/imap/src/c-client/newsrc.c
+++ b/imap/src/c-client/newsrc.c
@@ -1,3 +1,7 @@
+/*
+ * Copyright 2016 - Eduardo Chappa
+ * Last Modified: June 15, 2016
+ */
/* ========================================================================
* Copyright 1988-2006 University of Washington
*
@@ -358,6 +362,7 @@ long newsrc_write (char *group,MAILSTREAM *stream)
/* write to backup file */
if ((d = putc (c,bf)) == EOF) {
fclose (f); /* punt input file */
+ fclose (bf); /* and backup too */
return newsrc_error ("Error writing backup news state %.80s",
newsrc,ERROR);
}