Date: Sat, 7 Jan 2017 09:14:12 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r311607 - stable/11/contrib/netbsd-tests/lib/libc/c063 Message-ID: <201701070914.v079EDtT094624@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Sat Jan 7 09:14:12 2017 New Revision: 311607 URL: https://svnweb.freebsd.org/changeset/base/311607 Log: MFC r311246: fexecve: don't leak fd on fexecve(2) failure; close before calling err CID: 978285 Modified: stable/11/contrib/netbsd-tests/lib/libc/c063/t_fexecve.c Directory Properties: stable/11/ (props changed) Modified: stable/11/contrib/netbsd-tests/lib/libc/c063/t_fexecve.c ============================================================================== --- stable/11/contrib/netbsd-tests/lib/libc/c063/t_fexecve.c Sat Jan 7 09:12:51 2017 (r311606) +++ stable/11/contrib/netbsd-tests/lib/libc/c063/t_fexecve.c Sat Jan 7 09:14:12 2017 (r311607) @@ -70,6 +70,9 @@ ATF_TC_BODY(fexecve, tc) error = 76; else error = EXIT_FAILURE; +#ifdef __FreeBSD__ + (void)close(fd); +#endif err(error, "fexecve"); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701070914.v079EDtT094624>