Module: kamailio
Branch: master
Commit: d4e3f7f125cea1f8874b858324a804e6b743bb1c
URL:
https://github.com/kamailio/kamailio/commit/d4e3f7f125cea1f8874b858324a804e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-20T12:08:54+01:00
tm: 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/tm/t_funcs.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d4e3f7f125cea1f8874b858324a804e…
Patch:
https://github.com/kamailio/kamailio/commit/d4e3f7f125cea1f8874b858324a804e…
---
diff --git a/src/modules/tm/t_funcs.c b/src/modules/tm/t_funcs.c
index 68f56567e91..b19f2758aef 100644
--- a/src/modules/tm/t_funcs.c
+++ b/src/modules/tm/t_funcs.c
@@ -87,23 +87,6 @@ int send_pr_buffer(struct retr_buf *rb, void *buf, int len
void tm_shutdown()
{
-
- LM_DBG("start\n");
-
-#ifdef USE_DNS_FAILOVER
- if(failover_reply_codes)
- shm_free(failover_reply_codes);
- if(failover_reply_codes_cnt)
- shm_free(failover_reply_codes_cnt);
-#endif
- /* destroy the hash table */
- LM_DBG("emptying hash table\n");
- free_hash_table();
- LM_DBG("removing semaphores\n");
- lock_cleanup();
- LM_DBG("destroying tmcb lists\n");
- destroy_tmcb_lists();
- free_tm_stats();
LM_DBG("done\n");
}