Date: Wed, 4 Jan 2017 08:43:27 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r311270 - head/contrib/netbsd-tests/lib/libc/sys Message-ID: <201701040843.v048hRWj086644@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701040843.v048hRWj086644>