svn commit: r319061 - head/tests/sys/file

Ngie Cooper ngie at FreeBSD.org
Sun May 28 09:01:59 UTC 2017


Author: ngie
Date: Sun May 28 09:01:58 2017
New Revision: 319061
URL: https://svnweb.freebsd.org/changeset/base/319061

Log:
  Don't leak accept_fd on thread completion
  
  MFC after:	3 days
  Reported by:	Coverity
  CID:		1296068
  Sponsored by:	Dell EMC Isilon

Modified:
  head/tests/sys/file/newfileops_on_fork_test.c

Modified: head/tests/sys/file/newfileops_on_fork_test.c
==============================================================================
--- head/tests/sys/file/newfileops_on_fork_test.c	Sun May 28 08:57:08 2017	(r319060)
+++ head/tests/sys/file/newfileops_on_fork_test.c	Sun May 28 09:01:58 2017	(r319061)
@@ -63,6 +63,7 @@ do_accept(__unused void *arg)
 	if (accept_fd < 0)
 		err(1, "accept");
 
+	close(accept_fd);
 	return (NULL);
 }
 


More information about the svn-src-head mailing list