Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/gen PR/51810: Ngie Cooper: don't leak buf



details:   https://anonhg.NetBSD.org/src/rev/969534be1100
branches:  trunk
changeset: 820477:969534be1100
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jan 10 15:20:44 2017 +0000

description:
PR/51810: Ngie Cooper: don't leak buf

diffstat:

 tests/lib/libc/gen/t_humanize_number.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r c16cd3b86cb3 -r 969534be1100 tests/lib/libc/gen/t_humanize_number.c
--- a/tests/lib/libc/gen/t_humanize_number.c    Tue Jan 10 15:19:52 2017 +0000
+++ b/tests/lib/libc/gen/t_humanize_number.c    Tue Jan 10 15:20:44 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_humanize_number.c,v 1.8 2012/03/18 07:14:08 jruoho Exp $     */
+/*     $NetBSD: t_humanize_number.c,v 1.9 2017/01/10 15:20:44 christos Exp $   */
 
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
@@ -241,6 +241,7 @@
                newline();
                atf_tc_fail_nonfatal("Failed for table entry %d", i);
        }
+       free(buf);
 }
 
 ATF_TC(humanize_number_big);



Home | Main Index | Thread Index | Old Index