From 1b41e6aba3f475b337b984f5696eec7815a20006 Mon Sep 17 00:00:00 2001 From: philsmd Date: Tue, 14 Feb 2017 16:07:33 +0100 Subject: [PATCH] rule engine: 2 more possibly memory leaks (see previous commits) --- src/rp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rp.c b/src/rp.c index 2104de813..88fe093b8 100644 --- a/src/rp.c +++ b/src/rp.c @@ -735,6 +735,9 @@ int kernel_rules_load (hashcat_ctx_t *hashcat_ctx, kernel_rule_t **out_buf, u32 { event_log_error (hashcat_ctx, "%s: %s", rp_file, strerror (errno)); + hcfree (all_kernel_rules_cnt); + hcfree (all_kernel_rules_buf); + hcfree (rule_buf); return -1;