Module Name: src
Committed By: christos
Date: Fri Jan 13 21:16:38 UTC 2017
Modified Files:
src/tests/lib/libc/sys: t_setrlimit.c
Log Message:
PR/51862: Ngie Cooper: don't leak buf
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libc/sys/t_setrlimit.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_setrlimit.c
diff -u src/tests/lib/libc/sys/t_setrlimit.c:1.5 src/tests/lib/libc/sys/t_setrlimit.c:1.6
--- src/tests/lib/libc/sys/t_setrlimit.c:1.5 Wed Jul 13 05:53:16 2016
+++ src/tests/lib/libc/sys/t_setrlimit.c Fri Jan 13 16:16:38 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: t_setrlimit.c,v 1.5 2016/07/13 09:53:16 njoly Exp $ */
+/* $NetBSD: t_setrlimit.c,v 1.6 2017/01/13 21:16:38 christos Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_setrlimit.c,v 1.5 2016/07/13 09:53:16 njoly Exp $");
+__RCSID("$NetBSD: t_setrlimit.c,v 1.6 2017/01/13 21:16:38 christos Exp $");
#include <sys/resource.h>
#include <sys/mman.h>
@@ -122,6 +122,7 @@ out:
if (lim != 0)
atf_tc_fail("failed to set limit (%d)", lim);
+ free(buf);
}
ATF_TC(setrlimit_current);