From 0d905317a6a8517ea099718945a4bd792b3cda3d Mon Sep 17 00:00:00 2001 From: philsmd Date: Tue, 22 Dec 2015 19:03:35 +0100 Subject: [PATCH] fix OpenCL memory problem (exhaustion): -4 error should be gone --- src/oclHashcat.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/oclHashcat.c b/src/oclHashcat.c index 88a751ecd..c29aa4e56 100644 --- a/src/oclHashcat.c +++ b/src/oclHashcat.c @@ -15998,6 +15998,7 @@ int main (int argc, char **argv) if (device_param->d_scryptV_buf) hc_clReleaseMemObject (device_param->d_scryptV_buf); if (device_param->d_root_css_buf) hc_clReleaseMemObject (device_param->d_root_css_buf); if (device_param->d_markov_css_buf) hc_clReleaseMemObject (device_param->d_markov_css_buf); + if (device_param->d_tm_c) hc_clReleaseMemObject (device_param->d_tm_c); if (device_param->kernel1) hc_clReleaseKernel (device_param->kernel1); if (device_param->kernel12) hc_clReleaseKernel (device_param->kernel12); @@ -16007,9 +16008,13 @@ int main (int argc, char **argv) if (device_param->kernel_mp) hc_clReleaseKernel (device_param->kernel_mp); if (device_param->kernel_mp_l) hc_clReleaseKernel (device_param->kernel_mp_l); if (device_param->kernel_mp_r) hc_clReleaseKernel (device_param->kernel_mp_r); + if (device_param->kernel_tb) hc_clReleaseKernel (device_param->kernel_tb); + if (device_param->kernel_tm) hc_clReleaseKernel (device_param->kernel_tm); + if (device_param->kernel_amp) hc_clReleaseKernel (device_param->kernel_amp); if (device_param->program) hc_clReleaseProgram (device_param->program); if (device_param->program_mp) hc_clReleaseProgram (device_param->program_mp); + if (device_param->program_amp) hc_clReleaseProgram (device_param->program_amp); if (device_param->command_queue) hc_clReleaseCommandQueue (device_param->command_queue); if (device_param->context) hc_clReleaseContext (device_param->context); }