diff options
author | ngie <ngie@FreeBSD.org> | 2017-01-07 09:11:48 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-01-07 09:11:48 +0000 |
commit | bffdd07a4421f5a14b2350a7afb6fe55465b40b3 (patch) | |
tree | de38fb39cea7e7122e7255d299bbf6a81ca8b87a /contrib/netbsd-tests/lib | |
parent | 63d0e2cbf19d0378d9bfa690de563871bff1af91 (diff) | |
download | FreeBSD-src-bffdd07a4421f5a14b2350a7afb6fe55465b40b3.zip FreeBSD-src-bffdd07a4421f5a14b2350a7afb6fe55465b40b3.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')
-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) |