Skip to content

Commit bd8317a

Browse files
committed
Fix fb infer complain
1 parent 20f99cd commit bd8317a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gostsum.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ int hash_file(gost_hash_ctx * ctx, char *filename, char *sum, int mode)
163163
}
164164
if (!hash_stream(ctx, fd, sum)) {
165165
perror(filename);
166+
close(fd);
166167
return 0;
167168
}
168169
close(fd);

0 commit comments

Comments
 (0)