From 5594a6703c76946b97a4d81800fbd1fcb4484104 Mon Sep 17 00:00:00 2001 From: philsmd Date: Tue, 14 Feb 2017 12:17:33 +0100 Subject: [PATCH] mem problem in OpenCL device management: free () the platforms string --- src/opencl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/opencl.c b/src/opencl.c index 49178e754..66e8eee4d 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -192,6 +192,8 @@ static int setup_opencl_platforms_filter (hashcat_ctx_t *hashcat_ctx, const char { event_log_error (hashcat_ctx, "Invalid OpenCL platform %d specified", platform); + hcfree (platforms); + return -1; }