svn commit: r311619 - stable/10/contrib/netbsd-tests/lib/libc/sys

Ngie Cooper ngie at FreeBSD.org
Sat Jan 7 09:26:36 UTC 2017


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)


More information about the svn-src-stable mailing list