Fix resource leak

This commit is contained in:
Gabriele Gristina
2016-10-30 16:08:41 +01:00
parent cd7ec6100b
commit 6bf5ee95a6
4 changed files with 29 additions and 9 deletions

View File

@@ -441,7 +441,12 @@ static int calc (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param)
const int rc_wl_data_init = wl_data_init (hashcat_ctx_tmp);
if (rc_wl_data_init == -1) return -1;
if (rc_wl_data_init == -1)
{
fclose (fd);
return -1;
}
u64 words_cur = 0;