Browse Source

Merge pull request #546 from eschmidbauer/permissions-memory-leak-533

Fix memory leak by freeing RURI in trusted table struct; issue #533
Daniel-Constantin Mierla 9 years ago
parent
commit
59f3817fae
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/permissions/hash.c

+ 1 - 0
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);