Date: Sat, 7 Jan 2017 09:25:53 +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: r311618 - stable/11/contrib/netbsd-tests/lib/libc/sys Message-ID: <201701070925.v079Pr8L099236@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Sat Jan 7 09:25:53 2017 New Revision: 311618 URL: https://svnweb.freebsd.org/changeset/base/311618 Log: MFC r311250: mincore_resid: free buf after use CID: 978304 Modified: stable/11/contrib/netbsd-tests/lib/libc/sys/t_mincore.c Directory Properties: stable/11/ (props changed) Modified: stable/11/contrib/netbsd-tests/lib/libc/sys/t_mincore.c ============================================================================== --- stable/11/contrib/netbsd-tests/lib/libc/sys/t_mincore.c Sat Jan 7 09:24:37 2017 (r311617) +++ stable/11/contrib/netbsd-tests/lib/libc/sys/t_mincore.c Sat Jan 7 09:25:53 2017 (r311618) @@ -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?201701070925.v079Pr8L099236>