NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/51810: [PATCH] tests/lib/libc/gen/t_humanize_number: don't leak buf in :humanize_number_basic



The following reply was made to PR bin/51810; it has been noted by GNATS.

From: "Ngie Cooper (yaneurabeya)" <yaneurabeya%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/51810: [PATCH] tests/lib/libc/gen/t_humanize_number: don't
 leak buf in :humanize_number_basic
Date: Tue, 10 Jan 2017 01:40:54 -0800

 --Apple-Mail=_31056FB4-CC9A-40BD-B0CD-D98D2FB80220
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii
 
 Patch attached.
 
 --Apple-Mail=_31056FB4-CC9A-40BD-B0CD-D98D2FB80220
 Content-Disposition: attachment;
 	filename=t_humanize_number-dont-leak-buf.patch
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="t_humanize_number-dont-leak-buf.patch"
 Content-Transfer-Encoding: 7bit
 
 Index: t_humanize_number.c
 ===================================================================
 RCS file: /cvsroot/src/tests/lib/libc/gen/t_humanize_number.c,v
 retrieving revision 1.8
 diff -p -u -r1.8 t_humanize_number.c
 --- t_humanize_number.c	18 Mar 2012 07:14:08 -0000	1.8
 +++ t_humanize_number.c	10 Jan 2017 09:32:04 -0000
 @@ -241,6 +241,7 @@ ATF_TC_BODY(humanize_number_basic, tc)
  		newline();
  		atf_tc_fail_nonfatal("Failed for table entry %d", i);
  	}
 +	free(buf);
  }
  
  ATF_TC(humanize_number_big);
 
 --Apple-Mail=_31056FB4-CC9A-40BD-B0CD-D98D2FB80220--
 


Home | Main Index | Thread Index | Old Index