Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/106ba1674e5d
branches:  trunk
changeset: 820707:106ba1674e5d
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 13 20:46:15 2017 +0000

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

diffstat:

 tests/lib/libc/sys/t_pipe.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 398b7becaf85 -r 106ba1674e5d tests/lib/libc/sys/t_pipe.c
--- a/tests/lib/libc/sys/t_pipe.c       Fri Jan 13 20:44:45 2017 +0000
+++ b/tests/lib/libc/sys/t_pipe.c       Fri Jan 13 20:46:15 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_pipe.c,v 1.3 2011/10/31 15:41:31 christos Exp $ */
+/* $NetBSD: t_pipe.c,v 1.4 2017/01/13 20:46:15 christos Exp $ */
 
 /*-
  * Copyright (c) 2001, 2008 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2008\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_pipe.c,v 1.3 2011/10/31 15:41:31 christos Exp $");
+__RCSID("$NetBSD: t_pipe.c,v 1.4 2017/01/13 20:46:15 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/wait.h>
@@ -153,6 +153,7 @@
 
                ATF_REQUIRE_EQ(WEXITSTATUS(st), 0);
        }
+       free(f);
 }
 
 ATF_TP_ADD_TCS(tp)



Home | Main Index | Thread Index | Old Index