svn commit: r327269 - head/usr.bin/msgs

Warner Losh imp at FreeBSD.org
Thu Dec 28 05:33:52 UTC 2017


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;
 		}
 


More information about the svn-src-head mailing list