summaryrefslogtreecommitdiff
path: root/imap
diff options
context:
space:
mode:
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);
}