Module: kamailio Branch: master Commit: d4e3f7f125cea1f8874b858324a804e6b743bb1c URL: https://github.com/kamailio/kamailio/commit/d4e3f7f125cea1f8874b858324a804e6b743bb1c
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@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/d4e3f7f125cea1f8874b858324a804e6b743bb1c.diff Patch: https://github.com/kamailio/kamailio/commit/d4e3f7f125cea1f8874b858324a804e6b743bb1c.patch --- 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"); } _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!