diff options
author | Damien Miller <djm@mindrot.org> | 2006-03-26 13:52:20 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2006-03-26 13:52:20 +1100 |
commit | 6db780e259f985b9c88dff222eb56b4726a5a5e1 (patch) | |
tree | a8579a8520060f8eba0b5935307b446a725f4a25 /hostfile.c | |
parent | e0b90a676696c6729467837f6f4030d18999aa34 (diff) |
- djm@cvs.openbsd.org 2006/03/19 02:23:26
[hostfile.c]
FILE* leak detected by Coverity via elad AT netbsd.org;
ok deraadt@
Diffstat (limited to 'hostfile.c')
-rw-r--r-- | hostfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hostfile.c b/hostfile.c index 85fbcf7ce..c80578440 100644 --- a/hostfile.c +++ b/hostfile.c | |||
@@ -253,8 +253,10 @@ check_host_in_hostfile_by_key_or_type(const char *filename, | |||
253 | 253 | ||
254 | if (key == NULL) { | 254 | if (key == NULL) { |
255 | /* we found a key of the requested type */ | 255 | /* we found a key of the requested type */ |
256 | if (found->type == keytype) | 256 | if (found->type == keytype) { |
257 | fclose(f); | ||
257 | return HOST_FOUND; | 258 | return HOST_FOUND; |
259 | } | ||
258 | continue; | 260 | continue; |
259 | } | 261 | } |
260 | 262 | ||