]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Close file descriptor in test main().
authorTim Kosse <tim.kosse@filezilla-project.org>
Tue, 11 Aug 2015 09:30:13 +0000 (11:30 +0200)
committerSimon Tatham <anakin@pobox.com>
Sat, 15 Aug 2015 12:54:55 +0000 (13:54 +0100)
Some static analyzers are complaining about it.

sshzlib.c

index c69edfb81f9a09648baa67c5cf909b3e83aaabcc..ee1bc42d3054b8707ea41ffa04da5719048ec205 100644 (file)
--- a/sshzlib.c
+++ b/sshzlib.c
@@ -1366,6 +1366,7 @@ int main(int argc, char **argv)
             sfree(outbuf);
         } else {
             fprintf(stderr, "decoding error\n");
+            fclose(fp);
             return 1;
         }
     }