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

This commit is contained in:
christos 2017-01-13 20:46:15 +00:00
parent 93538aec95
commit 35c57c2fc8

View File

@ -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)