svn commit: r311605 - stable/11/contrib/netbsd-tests/lib/libc/sys
Ngie Cooper
ngie at FreeBSD.org
Sat Jan 7 09:11:49 UTC 2017
Author: ngie
Date: Sat Jan 7 09:11:48 2017
New Revision: 311605
URL: https://svnweb.freebsd.org/changeset/base/311605
Log:
MFC r311270:
pipe_restart: free f on function exit to quell complaint from Coverity
CID: 978307
Modified:
stable/11/contrib/netbsd-tests/lib/libc/sys/t_pipe.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/contrib/netbsd-tests/lib/libc/sys/t_pipe.c
==============================================================================
--- stable/11/contrib/netbsd-tests/lib/libc/sys/t_pipe.c Sat Jan 7 09:11:18 2017 (r311604)
+++ stable/11/contrib/netbsd-tests/lib/libc/sys/t_pipe.c Sat Jan 7 09:11:48 2017 (r311605)
@@ -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-11
mailing list