Author: imp
Date: Thu Dec 28 05:33:49 2017
New Revision: 327269
URL: https://svnweb.freebsd.org/changeset/base/327269

Log:
  Close cpfrom in an error case.
  
  CID: 271771

Modified:
  head/usr.bin/msgs/msgs.c

Modified: head/usr.bin/msgs/msgs.c
==============================================================================
--- head/usr.bin/msgs/msgs.c    Thu Dec 28 05:33:44 2017        (r327268)
+++ head/usr.bin/msgs/msgs.c    Thu Dec 28 05:33:49 2017        (r327269)
@@ -804,6 +804,7 @@ ask(const char *prompt)
                        mailing = NO;
                        fseeko(newmsg, oldpos, SEEK_SET);
                        ask(prompt);
+                       fclose(cpfrom);
                        return;
                }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to