Date: Wed, 4 Jan 2017 04:19:05 +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: r311245 - head/contrib/netbsd-tests/lib/libc/ttyio Message-ID: <201701040419.v044J5DO076272@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Wed Jan 4 04:19:05 2017 New Revision: 311245 URL: https://svnweb.freebsd.org/changeset/base/311245 Log: tty: don't leak s after opening it with openpty MFC after: 3 days Reported by: Coverity CID: 978321 Modified: head/contrib/netbsd-tests/lib/libc/ttyio/t_ttyio.c Modified: head/contrib/netbsd-tests/lib/libc/ttyio/t_ttyio.c ============================================================================== --- head/contrib/netbsd-tests/lib/libc/ttyio/t_ttyio.c Wed Jan 4 04:10:36 2017 (r311244) +++ head/contrib/netbsd-tests/lib/libc/ttyio/t_ttyio.c Wed Jan 4 04:19:05 2017 (r311245) @@ -152,6 +152,9 @@ ATF_TC_BODY(ioctl, tc) REQUIRE_ERRNO(sigaction(SIGCHLD, &sa, NULL), -1); (void) wait(NULL); +#ifdef __FreeBSD__ + (void)close(s); +#endif ATF_REQUIRE_EQ(rc, 0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701040419.v044J5DO076272>