svn commit: r311617 - stable/11/contrib/netbsd-tests/lib/libc/gen

Ngie Cooper ngie at FreeBSD.org
Sat Jan 7 09:24:38 UTC 2017


Author: ngie
Date: Sat Jan  7 09:24:37 2017
New Revision: 311617
URL: https://svnweb.freebsd.org/changeset/base/311617

Log:
  MFC r311229:
  
  humanize_number_basic: don't leak buf
  
  CID:		1251407

Modified:
  stable/11/contrib/netbsd-tests/lib/libc/gen/t_humanize_number.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/contrib/netbsd-tests/lib/libc/gen/t_humanize_number.c
==============================================================================
--- stable/11/contrib/netbsd-tests/lib/libc/gen/t_humanize_number.c	Sat Jan  7 09:21:26 2017	(r311616)
+++ stable/11/contrib/netbsd-tests/lib/libc/gen/t_humanize_number.c	Sat Jan  7 09:24:37 2017	(r311617)
@@ -247,6 +247,9 @@ ATF_TC_BODY(humanize_number_basic, tc)
 		newline();
 		atf_tc_fail_nonfatal("Failed for table entry %d", i);
 	}
+#ifdef	__FreeBSD__
+	free(buf);
+#endif
 }
 
 ATF_TC(humanize_number_big);


More information about the svn-src-all mailing list