From 1ee222d43f3d923f2539f7f2931c1ae7761aee0a Mon Sep 17 00:00:00 2001 From: Jukka Ojanen Date: Sun, 1 Aug 2021 14:21:18 +0300 Subject: [PATCH] Replace free() with hcfree() --- src/backend.c | 6 +++--- src/hashes.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/backend.c b/src/backend.c index 0d7741593..d870602e0 100644 --- a/src/backend.c +++ b/src/backend.c @@ -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 { diff --git a/src/hashes.c b/src/hashes.c index ef654e672..28f5396b7 100644 --- a/src/hashes.c +++ b/src/hashes.c @@ -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; }