[sr-dev] [kamailio] memory leak in permissions module (#533)

Emmanuel Schmidbauer notifications at github.com
Mon Mar 14 15:39:55 CET 2016


Hello, 
I found the memory leak in permissions.
Can you please push this patch?
```
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);
```



---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/533#issuecomment-196341332
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160314/0655667a/attachment.html>


More information about the sr-dev mailing list