summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc/sys/t_pipe.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-01-07 09:12:51 +0000
committerngie <ngie@FreeBSD.org>2017-01-07 09:12:51 +0000
commitec9e983fe90f9a349ed287008def6cbfa897eee8 (patch)
treedf13597d459d011d9d036100060972f7674d3afd /contrib/netbsd-tests/lib/libc/sys/t_pipe.c
parente778dc7abd08524adff48262a8edb723fdf19bb0 (diff)
downloadFreeBSD-src-ec9e983fe90f9a349ed287008def6cbfa897eee8.zip
FreeBSD-src-ec9e983fe90f9a349ed287008def6cbfa897eee8.tar.gz
MFC r311270:
pipe_restart: free f on function exit to quell complaint from Coverity CID: 978307
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/sys/t_pipe.c')
-rw-r--r--contrib/netbsd-tests/lib/libc/sys/t_pipe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/sys/t_pipe.c b/contrib/netbsd-tests/lib/libc/sys/t_pipe.c
index b30b94d..32beecc 100644
--- a/contrib/netbsd-tests/lib/libc/sys/t_pipe.c
+++ b/contrib/netbsd-tests/lib/libc/sys/t_pipe.c
@@ -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)
OpenPOWER on IntegriCloud