svn commit: r311270 - head/contrib/netbsd-tests/lib/libc/sys

Ngie Cooper ngie at FreeBSD.org
Wed Jan 4 08:43:28 UTC 2017


Author: ngie
Date: Wed Jan  4 08:43:27 2017
New Revision: 311270
URL: https://svnweb.freebsd.org/changeset/base/311270

Log:
  pipe_restart: free f on function exit to quell complaint from Coverity
  
  MFC after:	3 days
  Reported by:	Coverity
  CID:		978307

Modified:
  head/contrib/netbsd-tests/lib/libc/sys/t_pipe.c

Modified: head/contrib/netbsd-tests/lib/libc/sys/t_pipe.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/sys/t_pipe.c	Wed Jan  4 08:35:46 2017	(r311269)
+++ head/contrib/netbsd-tests/lib/libc/sys/t_pipe.c	Wed Jan  4 08:43:27 2017	(r311270)
@@ -153,6 +153,9 @@ ATF_TC_BODY(pipe_restart, tc)
 
 		ATF_REQUIRE_EQ(WEXITSTATUS(st), 0);
 	}
+#ifdef	__FreeBSD__
+	free(f);
+#endif
 }
 
 ATF_TP_ADD_TCS(tp)


More information about the svn-src-head mailing list