From 645fe0488129435c0b01e9fdc134cc71d6fb8579 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Wed, 15 Jun 2016 08:04:58 -0600 Subject: [PATCH] * Add a missing call to fclose in newsrc.c. Reported by David Binderman. --- imap/src/c-client/newsrc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/imap/src/c-client/newsrc.c b/imap/src/c-client/newsrc.c index ce694c6..8036b1a 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); } -- 2.11.4.GIT