svn commit: r311606 - stable/10/contrib/netbsd-tests/lib/libc/sys

Ngie Cooper ngie at FreeBSD.org
Sat Jan 7 09:12:52 UTC 2017


Author: ngie
Date: Sat Jan  7 09:12:51 2017
New Revision: 311606
URL: https://svnweb.freebsd.org/changeset/base/311606

Log:
  MFC r311270:
  
  pipe_restart: free f on function exit to quell complaint from Coverity
  
  CID:		978307

Modified:
  stable/10/contrib/netbsd-tests/lib/libc/sys/t_pipe.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/netbsd-tests/lib/libc/sys/t_pipe.c
==============================================================================
--- stable/10/contrib/netbsd-tests/lib/libc/sys/t_pipe.c	Sat Jan  7 09:11:48 2017	(r311605)
+++ stable/10/contrib/netbsd-tests/lib/libc/sys/t_pipe.c	Sat Jan  7 09:12:51 2017	(r311606)
@@ -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-stable-10 mailing list