Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/rump/rumpvfs CID 978337: Fix resource leak
details: https://anonhg.NetBSD.org/src/rev/5def3c518e8b
branches: trunk
changeset: 329163:5def3c518e8b
user: christos <christos%NetBSD.org@localhost>
date: Mon May 12 15:33:12 2014 +0000
description:
CID 978337: Fix resource leak
diffstat:
tests/rump/rumpvfs/t_etfs.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 5550441c0d0c -r 5def3c518e8b tests/rump/rumpvfs/t_etfs.c
--- a/tests/rump/rumpvfs/t_etfs.c Mon May 12 15:31:07 2014 +0000
+++ b/tests/rump/rumpvfs/t_etfs.c Mon May 12 15:33:12 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_etfs.c,v 1.9 2010/11/30 18:19:47 pooka Exp $ */
+/* $NetBSD: t_etfs.c,v 1.10 2014/05/12 15:33:12 christos Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -103,6 +103,8 @@
ATF_REQUIRE_EQ(lseek(localfd, 0, SEEK_SET), 0);
ATF_REQUIRE(read(localfd, buf, sizeof(buf)) > 0);
ATF_REQUIRE_STREQ(buf, TESTSTR2);
+ close(etcfd);
+ close(localfd);
}
ATF_TC(reregister_blk);
Home |
Main Index |
Thread Index |
Old Index