From d20079bfe15b6c78773abbc957c8677d4d2106f0 Mon Sep 17 00:00:00 2001 From: philsmd Date: Tue, 14 Feb 2017 17:05:35 +0100 Subject: [PATCH] if fstat () fails we shouldn't forget to close the file --- src/outfile_check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/outfile_check.c b/src/outfile_check.c index 6d17f3981..009b17e4d 100644 --- a/src/outfile_check.c +++ b/src/outfile_check.c @@ -144,7 +144,7 @@ static int outfile_remove (hashcat_ctx_t *hashcat_ctx) if (hc_fstat (fileno (fp), &outfile_stat)) { - close (fp); + fclose (fp); continue; }