svn commit: r311618 - stable/11/contrib/netbsd-tests/lib/libc/sys

Ngie Cooper ngie at FreeBSD.org
Sat Jan 7 09:25:54 UTC 2017


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)


More information about the svn-src-all mailing list