Module: kamailio Branch: 4.4 Commit: 73313e6296cfc81c1dc8167845ee8fd3d0397a73 URL: https://github.com/kamailio/kamailio/commit/73313e6296cfc81c1dc8167845ee8fd3...
Author: Emmanuel Schmidbauer eschmidbauer@voipxswitch.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2016-03-14T17:48:29+01:00
permissions: fix memory leak
- free ruri_pattern from trusted struct in empty_hash_table()
(cherry picked from commit 93fd86c882fd82f4277a80322dd729c2dc0370a0)
---
Modified: modules/permissions/hash.c
---
Diff: https://github.com/kamailio/kamailio/commit/73313e6296cfc81c1dc8167845ee8fd3... Patch: https://github.com/kamailio/kamailio/commit/73313e6296cfc81c1dc8167845ee8fd3...
---
diff --git a/modules/permissions/hash.c b/modules/permissions/hash.c index cfc81fe..84b20e2 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);