|
|
|
@ -1807,26 +1807,47 @@ void status_ctx_destroy (hashcat_ctx_t *hashcat_ctx)
|
|
|
|
|
memset (status_ctx, 0, sizeof (status_ctx_t));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void status_status_destroy (hashcat_status_t *status_ctx)
|
|
|
|
|
|
|
|
|
|
void status_status_destroy (hashcat_ctx_t *hashcat_ctx, hashcat_status_t *hashcat_status)
|
|
|
|
|
{
|
|
|
|
|
if (NULL == status_ctx) return;
|
|
|
|
|
const status_ctx_t *status_ctx = hashcat_ctx->status_ctx;
|
|
|
|
|
|
|
|
|
|
if (status_ctx == NULL) return;
|
|
|
|
|
|
|
|
|
|
if (status_ctx->accessible == false) 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 (hashcat_status->session);
|
|
|
|
|
hcfree (hashcat_status->time_estimated_absolute);
|
|
|
|
|
hcfree (hashcat_status->time_estimated_relative);
|
|
|
|
|
hcfree (hashcat_status->time_started_absolute);
|
|
|
|
|
hcfree (hashcat_status->time_started_relative);
|
|
|
|
|
hcfree (hashcat_status->speed_sec_all);
|
|
|
|
|
hcfree (hashcat_status->guess_base);
|
|
|
|
|
hcfree (hashcat_status->guess_mod);
|
|
|
|
|
hcfree (hashcat_status->guess_charset);
|
|
|
|
|
hcfree (hashcat_status->cpt);
|
|
|
|
|
|
|
|
|
|
for (int device_id = 0; device_id < status_ctx->device_info_cnt; device_id++)
|
|
|
|
|
hashcat_status->session = NULL;
|
|
|
|
|
hashcat_status->time_estimated_absolute = NULL;
|
|
|
|
|
hashcat_status->time_estimated_relative = NULL;
|
|
|
|
|
hashcat_status->time_started_absolute = NULL;
|
|
|
|
|
hashcat_status->time_started_relative = NULL;
|
|
|
|
|
hashcat_status->speed_sec_all = NULL;
|
|
|
|
|
hashcat_status->guess_base = NULL;
|
|
|
|
|
hashcat_status->guess_mod = NULL;
|
|
|
|
|
hashcat_status->guess_charset = NULL;
|
|
|
|
|
hashcat_status->cpt = NULL;
|
|
|
|
|
|
|
|
|
|
for (int device_id = 0; device_id < hashcat_status->device_info_cnt; device_id++)
|
|
|
|
|
{
|
|
|
|
|
device_info_t *device_info = status_ctx->device_info_buf + device_id;
|
|
|
|
|
device_info_t *device_info = hashcat_status->device_info_buf + device_id;
|
|
|
|
|
|
|
|
|
|
hcfree (device_info->speed_sec_dev);
|
|
|
|
|
hcfree (device_info->guess_candidates_dev);
|
|
|
|
|
hcfree (device_info->hwmon_dev);
|
|
|
|
|
|
|
|
|
|
device_info->speed_sec_dev = NULL;
|
|
|
|
|
device_info->guess_candidates_dev = NULL;
|
|
|
|
|
device_info->hwmon_dev = NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|