From f3f215423bca59a0f09483db973d5ddc44d3d041 Mon Sep 17 00:00:00 2001 From: Tim Kosse Date: Tue, 11 Aug 2015 11:30:13 +0200 Subject: [PATCH] Close file descriptor in test main(). Some static analyzers are complaining about it. --- sshzlib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sshzlib.c b/sshzlib.c index c69edfb8..ee1bc42d 100644 --- 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; } }