Module Name:    src
Committed By:   christos
Date:           Mon May 12 15:33:12 UTC 2014

Modified Files:
        src/tests/rump/rumpvfs: t_etfs.c

Log Message:
CID 978337: Fix resource leak


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/rump/rumpvfs/t_etfs.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/rump/rumpvfs/t_etfs.c
diff -u src/tests/rump/rumpvfs/t_etfs.c:1.9 src/tests/rump/rumpvfs/t_etfs.c:1.10
--- src/tests/rump/rumpvfs/t_etfs.c:1.9	Tue Nov 30 13:19:47 2010
+++ src/tests/rump/rumpvfs/t_etfs.c	Mon May 12 11:33:12 2014
@@ -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_TC_BODY(reregister_reg, tc)
 	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);

Reply via email to