Module: kamailio
Branch: master
Commit: 59f3817faeca92026f932ae28a2d4f9caa900060
URL:
https://github.com/kamailio/kamailio/commit/59f3817faeca92026f932ae28a2d4f9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-03-14T17:39:48+01:00
Merge pull request #546 from eschmidbauer/permissions-memory-leak-533
Fix memory leak by freeing RURI in trusted table struct; issue #533
---
Modified: modules/permissions/hash.c
---
Diff:
https://github.com/kamailio/kamailio/commit/59f3817faeca92026f932ae28a2d4f9…
Patch:
https://github.com/kamailio/kamailio/commit/59f3817faeca92026f932ae28a2d4f9…
---
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);