permissions: fix memory leak 546/head
authorEmmanuel Schmidbauer <eschmidbauer@voipxswitch.com>
Mon, 14 Mar 2016 16:17:03 +0000 (17:17 +0100)
committerEmmanuel Schmidbauer <eschmidbauer@voipxswitch.com>
Mon, 14 Mar 2016 16:17:03 +0000 (17:17 +0100)
- free ruri_pattern from trusted struct in empty_hash_table()

modules/permissions/hash.c

index cfc81fe..84b20e2 100644 (file)
@@ -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);