if fstat () fails we shouldn't forget to close the file

pull/1078/head
philsmd 7 years ago
parent bcb05697c0
commit d20079bfe1
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF

@ -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;
}

Loading…
Cancel
Save