From 73313e6296cfc81c1dc8167845ee8fd3d0397a73 Mon Sep 17 00:00:00 2001 From: Emmanuel Schmidbauer Date: Mon, 14 Mar 2016 17:17:03 +0100 Subject: [PATCH] permissions: fix memory leak - free ruri_pattern from trusted struct in empty_hash_table() (cherry picked from commit 93fd86c882fd82f4277a80322dd729c2dc0370a0) --- modules/permissions/hash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/permissions/hash.c b/modules/permissions/hash.c index cfc81fe4427..84b20e2d416 100644 --- a/modules/permissions/hash.c +++ b/modules/permissions/hash.c @@ -423,6 +423,7 @@ void empty_hash_table(struct trusted_list **table) while (np) { if (np->src_ip.s) shm_free(np->src_ip.s); if (np->pattern) shm_free(np->pattern); + if (np->ruri_pattern) shm_free(np->ruri_pattern); if (np->tag.s) shm_free(np->tag.s); next = np->next; shm_free(np);