[sr-dev] git:master:f5017700: domain: fix memory leak on domain reload (related to domain_attr table, struct domain_list)
Henning Westerholt
hw at skalatan.de
Sun Aug 4 21:15:08 CEST 2019
Module: kamailio
Branch: master
Commit: f50177003c21f53564be6349c0bb4935be184e2d
URL: https://github.com/kamailio/kamailio/commit/f50177003c21f53564be6349c0bb4935be184e2d
Author: Henning Westerholt <hw at skalatan.de>
Committer: Henning Westerholt <hw at 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/f50177003c21f53564be6349c0bb4935be184e2d.diff
Patch: https://github.com/kamailio/kamailio/commit/f50177003c21f53564be6349c0bb4935be184e2d.patch
---
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;
}
More information about the sr-dev
mailing list