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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to