From bd8317a59b32ad98195f60305cc2446dcfb8b1a5 Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Sat, 21 Sep 2019 15:59:45 +0300 Subject: [PATCH] Fix fb infer complain --- gostsum.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gostsum.c b/gostsum.c index d9860e4..b61215c 100644 --- a/gostsum.c +++ b/gostsum.c @@ -163,6 +163,7 @@ int hash_file(gost_hash_ctx * ctx, char *filename, char *sum, int mode) } if (!hash_stream(ctx, fd, sum)) { perror(filename); + close(fd); return 0; } close(fd); -- 2.39.5