Date: Sat, 7 Jan 2017 09:26:35 +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-10@freebsd.org Subject: svn commit: r311619 - stable/10/contrib/netbsd-tests/lib/libc/sys Message-ID: <201701070926.v079QZWY099306@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Sat Jan 7 09:26:34 2017 New Revision: 311619 URL: https://svnweb.freebsd.org/changeset/base/311619 Log: MFC r311250: mincore_resid: free buf after use CID: 978304 Modified: stable/10/contrib/netbsd-tests/lib/libc/sys/t_mincore.c Directory Properties: stable/10/ (props changed) Modified: stable/10/contrib/netbsd-tests/lib/libc/sys/t_mincore.c ============================================================================== --- stable/10/contrib/netbsd-tests/lib/libc/sys/t_mincore.c Sat Jan 7 09:25:53 2017 (r311618) +++ stable/10/contrib/netbsd-tests/lib/libc/sys/t_mincore.c Sat Jan 7 09:26:34 2017 (r311619) @@ -279,6 +279,9 @@ ATF_TC_BODY(mincore_resid, tc) (void)munmap(addr2, npgs * page); (void)munmap(addr3, npgs * page); (void)unlink(path); +#ifdef __FreeBSD__ + free(buf); +#endif } ATF_TC_CLEANUP(mincore_resid, tc)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701070926.v079QZWY099306>