1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Fixes memleak in user_options_check_files()

See https://github.com/hashcat/hashcat/pull/2671
This commit is contained in:
Jens Steube 2021-05-04 13:48:04 +02:00
parent 520d0ae398
commit 5d7dc3cbc1

View File

@ -2933,8 +2933,12 @@ int user_options_check_files (hashcat_ctx_t *hashcat_ctx)
{ {
event_log_error (hashcat_ctx, "%s: %s", temp_filename, strerror (errno)); event_log_error (hashcat_ctx, "%s: %s", temp_filename, strerror (errno));
hcfree (temp_filename);
return -1; return -1;
} }
hcfree (temp_filename);
} }
// return back to the folder we came from initially (workaround) // return back to the folder we came from initially (workaround)