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 add another missing munmap (Kamil)
details: https://anonhg.NetBSD.org/src/rev/ccca431f1cf9
branches: trunk
changeset: 355033:ccca431f1cf9
user: christos <christos%NetBSD.org@localhost>
date: Sun Jul 09 22:18:43 2017 +0000
description:
add another missing munmap (Kamil)
diffstat:
tests/lib/libc/sys/t_write.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r d9aeba4be767 -r ccca431f1cf9 tests/lib/libc/sys/t_write.c
--- a/tests/lib/libc/sys/t_write.c Sun Jul 09 22:13:48 2017 +0000
+++ b/tests/lib/libc/sys/t_write.c Sun Jul 09 22:18:43 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_write.c,v 1.5 2017/07/09 22:13:48 christos Exp $ */
+/* $NetBSD: t_write.c,v 1.6 2017/07/09 22:18:43 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_write.c,v 1.5 2017/07/09 22:13:48 christos Exp $");
+__RCSID("$NetBSD: t_write.c,v 1.6 2017/07/09 22:18:43 christos Exp $");
#include <sys/uio.h>
#include <sys/mman.h>
@@ -265,6 +265,7 @@
ATF_REQUIRE_EQ_MSG(retval, -1, "got: %zd", retval);
ATF_REQUIRE_EQ_MSG(errno, EFAULT, "got: %s", strerror(errno));
+ munmap(map, SIZE);
close(fd);
}
Home |
Main Index |
Thread Index |
Old Index