From dd97799e4cef3fcc57fd0a47d45af8a1661e9c42 Mon Sep 17 00:00:00 2001 From: jsteube Date: Wed, 31 Jan 2018 16:42:04 +0100 Subject: [PATCH] Hashcat Context: Fixed a memory leak in shutdown phase --- docs/changes.txt | 1 + src/hashcat.c | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 738c86409..de79aed70 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -46,6 +46,7 @@ - Documents: Added docs/limits.txt - 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 +- Hashcat Context: Fixed a memory leak in shutdown phase - 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 diff --git a/src/hashcat.c b/src/hashcat.c index 507b9c8ee..7e1380cb5 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -879,6 +879,7 @@ void hashcat_destroy (hashcat_ctx_t *hashcat_ctx) hcfree (hashcat_ctx->dictstat_ctx); hcfree (hashcat_ctx->event_ctx); hcfree (hashcat_ctx->folder_config); + hcfree (hashcat_ctx->hashcat_user); hcfree (hashcat_ctx->hashconfig); hcfree (hashcat_ctx->hashes); hcfree (hashcat_ctx->hwmon_ctx);