From e2654efaa7a18c85dc086eee173e392e33deffa6 Mon Sep 17 00:00:00 2001 From: jsteube Date: Wed, 31 Jan 2018 16:40:48 +0100 Subject: [PATCH] Hash Parser: Fixed a memory leak in shutdown phase --- docs/changes.txt | 1 + src/hashes.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 98fd0b897..738c86409 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -47,6 +47,7 @@ - Files: Copy include/ folder and its content when SHARED is set to 1 in Makefile - Files: Switched back to relative current working directory on windows to work around problems with unicode characters - Hash Parser: Changed the way large strings are handled/truncated within the event buffer if they are too large to fit +- Hash Parser: Fixed a memory leak in shutdown phase - Hash Parser: Fixed the use of strtok_r () calls - OpenCL Devices: Fixed several memory leaks in shutdown phase - OpenCL Runtime: Updated rocm detection diff --git a/src/hashes.c b/src/hashes.c index 86af3de1e..db8e03349 100644 --- a/src/hashes.c +++ b/src/hashes.c @@ -1750,6 +1750,8 @@ void hashes_destroy (hashcat_ctx_t *hashcat_ctx) { hcfree (hashes->hash_info[hash_pos]->split); } + + hcfree (hashes->hash_info[hash_pos]); } }