Replace free() with hcfree()

pull/2894/head
Jukka Ojanen 3 years ago
parent e352a79a05
commit 1ee222d43f

@ -5059,12 +5059,12 @@ int run_opencl_kernel_memset (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *dev
char *tmp = hcmalloc (len * sizeof (u8));
memset(tmp, value, len);
memset (tmp, value, len);
/* blocking */
rc = hc_clEnqueueWriteBuffer (hashcat_ctx, device_param->opencl_command_queue, buf, CL_TRUE, offset, size, tmp, 0, NULL, NULL);
free(tmp);
hcfree (tmp);
}
else
{
@ -5096,7 +5096,7 @@ int run_opencl_kernel_memset32 (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *d
/* blocking */
rc = hc_clEnqueueWriteBuffer (hashcat_ctx, device_param->opencl_command_queue, buf, CL_TRUE, offset * sizeof (u32), size * sizeof (u32), tmp, 0, NULL, NULL);
free(tmp);
hcfree (tmp);
}
else
{

@ -331,7 +331,7 @@ int check_hash (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, pla
if (rc == -1)
{
free(tmps);
hcfree (tmps);
return -1;
}
@ -348,7 +348,7 @@ int check_hash (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, pla
if (rc == -1)
{
free(tmps);
hcfree (tmps);
return -1;
}
@ -365,7 +365,7 @@ int check_hash (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, pla
if (rc == -1)
{
free(tmps);
hcfree (tmps);
return -1;
}

Loading…
Cancel
Save