]> andersk Git - openssh.git/commitdiff
- djm@cvs.openbsd.org 2006/03/19 02:23:26
authordjm <djm>
Sun, 26 Mar 2006 02:52:20 +0000 (02:52 +0000)
committerdjm <djm>
Sun, 26 Mar 2006 02:52:20 +0000 (02:52 +0000)
     [hostfile.c]
     FILE* leak detected by Coverity via elad AT netbsd.org;
     ok deraadt@

ChangeLog
hostfile.c

index 011b9efcd5fb62faf6c7c0662bfdaba9c9354c73..07a3600b5c0dc5d23f1837afe711f7213b3babfa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
      [sftp.c]
      more memory leaks detected by Coverity via elad AT netbsd.org;
      deraadt@ ok
+   - djm@cvs.openbsd.org 2006/03/19 02:23:26
+     [hostfile.c]
+     FILE* leak detected by Coverity via elad AT netbsd.org;
+     ok deraadt@
 
 20060325
  - OpenBSD CVS Sync
index 85fbcf7ce2a5a2c81a947d506b736263b2dd204d..c805784401abf2c66b0e85ae4c083268e927cbf8 100644 (file)
@@ -253,8 +253,10 @@ check_host_in_hostfile_by_key_or_type(const char *filename,
 
                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;
                }
 
This page took 0.140161 seconds and 5 git commands to generate.