From: Dmitry Belyavskiy Date: Sat, 21 Sep 2019 12:59:45 +0000 (+0300) Subject: Fix fb infer complain X-Git-Tag: v3.0.0~270 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=bd8317a59b32ad98195f60305cc2446dcfb8b1a5;p=openssl-gost%2Fengine.git Fix fb infer complain --- 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);