Module: kamailio
Branch: master
Commit: 6f6504dd6091d0493a8401b4e71ceea98ad5f6ca
URL:
https://github.com/kamailio/kamailio/commit/6f6504dd6091d0493a8401b4e71ceea…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-20T17:16:11+01:00
mtree: remove destroy of internal structures on mod-destroy callback
- it is safer and faster to be removed at once by core or OS when application
context is destroyed
---
Modified: src/modules/mtree/mtree_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6f6504dd6091d0493a8401b4e71ceea…
Patch:
https://github.com/kamailio/kamailio/commit/6f6504dd6091d0493a8401b4e71ceea…
---
diff --git a/src/modules/mtree/mtree_mod.c b/src/modules/mtree/mtree_mod.c
index 99cd5337bc3..881fd36bf4b 100644
--- a/src/modules/mtree/mtree_mod.c
+++ b/src/modules/mtree/mtree_mod.c
@@ -312,15 +312,6 @@ static int child_init(int rank)
static void mod_destroy(void)
{
LM_DBG("cleaning up\n");
- mt_destroy_trees();
- if(db_con != NULL && mt_dbf.close != NULL)
- mt_dbf.close(db_con);
- /* destroy lock */
- if(mt_lock) {
- lock_destroy(mt_lock);
- lock_dealloc(mt_lock);
- mt_lock = 0;
- }
}
static int fixup_mt_match(void **param, int param_no)