diff options
author | ngie <ngie@FreeBSD.org> | 2017-01-07 09:12:51 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-01-07 09:12:51 +0000 |
commit | ec9e983fe90f9a349ed287008def6cbfa897eee8 (patch) | |
tree | df13597d459d011d9d036100060972f7674d3afd /contrib/netbsd-tests/lib/libc/sys/t_pipe.c | |
parent | e778dc7abd08524adff48262a8edb723fdf19bb0 (diff) | |
download | FreeBSD-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.c | 3 |
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) |