Module Name: src
Committed By: christos
Date: Fri Jan 13 20:46:16 UTC 2017
Modified Files:
src/tests/lib/libc/sys: t_pipe.c
Log Message:
PR/51858: Ngie Cooper: don't leak buf
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/sys/t_pipe.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/lib/libc/sys/t_pipe.c
diff -u src/tests/lib/libc/sys/t_pipe.c:1.3 src/tests/lib/libc/sys/t_pipe.c:1.4
--- src/tests/lib/libc/sys/t_pipe.c:1.3 Mon Oct 31 11:41:31 2011
+++ src/tests/lib/libc/sys/t_pipe.c Fri Jan 13 15:46:15 2017
@@ -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_TC_BODY(pipe_restart, tc)
ATF_REQUIRE_EQ(WEXITSTATUS(st), 0);
}
+ free(f);
}
ATF_TP_ADD_TCS(tp)