Explorar o código

domain: fix memory leak on domain reload (related to domain_attr table, struct domain_list)

- fix memory leak on domain reload, reported by Mack Hendricks
- related to domain_attr table, structure domain_list
Henning Westerholt %!s(int64=6) %!d(string=hai) anos
pai
achega
f50177003c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/modules/domain/hash.c

+ 1 - 0
src/modules/domain/hash.c

@@ -204,6 +204,7 @@ void hash_table_free(struct domain_list **hash_table)
 			shm_free(ap);
 			ap = next_ap;
 		}
+		shm_free(np);
 		np = np->next;
 	}