mirror of
https://github.com/hashcat/hashcat
synced 2025-01-03 11:16:23 +01:00
Review/Style Changes
This commit is contained in:
parent
b5f5591b1a
commit
efd18121d5
@ -37,6 +37,7 @@
|
||||
|
||||
- Fixed a missing type specifier in a function declaration of the RACF kernel
|
||||
- Fixed a condition that caused a hybrid attack using a maskfile to not select all wordlists from a wordlist folder
|
||||
- Fixed a memory leak that is present when a user is periodically printing hashcat status (using --status-timer)
|
||||
|
||||
##
|
||||
## Technical
|
||||
|
29
src/status.c
29
src/status.c
@ -1809,25 +1809,24 @@ void status_ctx_destroy (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
void status_status_destroy (hashcat_status_t *status_ctx)
|
||||
{
|
||||
if (NULL == status_ctx)
|
||||
return;
|
||||
if (NULL == status_ctx) return;
|
||||
|
||||
hcfree(status_ctx->session);
|
||||
hcfree(status_ctx->time_estimated_absolute);
|
||||
hcfree(status_ctx->time_estimated_relative);
|
||||
hcfree(status_ctx->time_started_absolute);
|
||||
hcfree(status_ctx->time_started_relative);
|
||||
hcfree(status_ctx->speed_sec_all);
|
||||
hcfree(status_ctx->guess_base);
|
||||
hcfree(status_ctx->guess_mod);
|
||||
hcfree(status_ctx->guess_charset);
|
||||
hcfree(status_ctx->cpt);
|
||||
hcfree (status_ctx->session);
|
||||
hcfree (status_ctx->time_estimated_absolute);
|
||||
hcfree (status_ctx->time_estimated_relative);
|
||||
hcfree (status_ctx->time_started_absolute);
|
||||
hcfree (status_ctx->time_started_relative);
|
||||
hcfree (status_ctx->speed_sec_all);
|
||||
hcfree (status_ctx->guess_base);
|
||||
hcfree (status_ctx->guess_mod);
|
||||
hcfree (status_ctx->guess_charset);
|
||||
hcfree (status_ctx->cpt);
|
||||
|
||||
for (int device_id = 0; device_id < status_ctx->device_info_cnt; device_id++)
|
||||
{
|
||||
device_info_t *device_info = status_ctx->device_info_buf + device_id;
|
||||
hcfree(device_info->speed_sec_dev);
|
||||
hcfree(device_info->guess_candidates_dev);
|
||||
hcfree(device_info->hwmon_dev);
|
||||
hcfree (device_info->speed_sec_dev);
|
||||
hcfree (device_info->guess_candidates_dev);
|
||||
hcfree (device_info->hwmon_dev);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user