Module: kamailio Branch: master Commit: 5f8f4fade15e9b2950f503b2ec5bb49a326a4fc0 URL: https://github.com/kamailio/kamailio/commit/5f8f4fade15e9b2950f503b2ec5bb49a326a4fc0
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2024-11-20T12:08:54+01:00 presence: 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/presence/presence.c --- Diff: https://github.com/kamailio/kamailio/commit/5f8f4fade15e9b2950f503b2ec5bb49a326a4fc0.diff Patch: https://github.com/kamailio/kamailio/commit/5f8f4fade15e9b2950f503b2ec5bb49a326a4fc0.patch --- diff --git a/src/modules/presence/presence.c b/src/modules/presence/presence.c index 9e1b6288d88..4f1c1380e2c 100644 --- a/src/modules/presence/presence.c +++ b/src/modules/presence/presence.c @@ -635,26 +635,6 @@ static void destroy(void) } else timer_db_update(0, 0); } - - if(subs_htable) { - destroy_shtable(subs_htable, shtable_size); - } - - if(pres_htable) { - destroy_phtable(); - } - - if(pa_db && pa_dbf.close) { - pa_dbf.close(pa_db); - } - - if(pres_notifier_id != NULL) { - shm_free(pres_notifier_id); - } - - destroy_evlist(); - - ps_ptable_destroy(); } static int fixup_presence(void **param, int param_no) _______________________________________________ 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!