Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jan 2017 02:38:14 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r311229 - head/contrib/netbsd-tests/lib/libc/gen
Message-ID:  <201701040238.v042cEsu034935@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Wed Jan  4 02:38:14 2017
New Revision: 311229
URL: https://svnweb.freebsd.org/changeset/base/311229

Log:
  humanize_number_basic: don't leak buf
  
  MFC after:	3 days
  Reported by:	Coverity
  CID:		1251407

Modified:
  head/contrib/netbsd-tests/lib/libc/gen/t_humanize_number.c

Modified: head/contrib/netbsd-tests/lib/libc/gen/t_humanize_number.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/gen/t_humanize_number.c	Wed Jan  4 02:34:30 2017	(r311228)
+++ head/contrib/netbsd-tests/lib/libc/gen/t_humanize_number.c	Wed Jan  4 02:38:14 2017	(r311229)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701040238.v042cEsu034935>