Module: kamailio
Branch: master
Commit: f50177003c21f53564be6349c0bb4935be184e2d
URL:
https://github.com/kamailio/kamailio/commit/f50177003c21f53564be6349c0bb493…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-08-04T21:12:48+02:00
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
---
Modified: src/modules/domain/hash.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f50177003c21f53564be6349c0bb493…
Patch:
https://github.com/kamailio/kamailio/commit/f50177003c21f53564be6349c0bb493…
---
diff --git a/src/modules/domain/hash.c b/src/modules/domain/hash.c
index 257d374dba..b093dbc3e4 100644
--- a/src/modules/domain/hash.c
+++ b/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;
}