- djm@cvs.openbsd.org 2006/03/19 02:23:26
     [hostfile.c]
     FILE* leak detected by Coverity via elad AT netbsd.org;
     ok deraadt@
diff --git a/hostfile.c b/hostfile.c
index 85fbcf7..c805784 100644
--- a/hostfile.c
+++ b/hostfile.c
@@ -253,8 +253,10 @@
 
 		if (key == NULL) {
 			/* we found a key of the requested type */
-			if (found->type == keytype)
+			if (found->type == keytype) {
+				fclose(f);
 				return HOST_FOUND;
+			}
 			continue;
 		}