Module: kamailio Branch: master Commit: e409ad5bc13b23ec171d9b66f937cd75731099c3 URL: https://github.com/kamailio/kamailio/commit/e409ad5bc13b23ec171d9b66f937cd75...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2024-11-20T12:08:54+01:00
dialog: 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/dialog/dialog.c
---
Diff: https://github.com/kamailio/kamailio/commit/e409ad5bc13b23ec171d9b66f937cd75... Patch: https://github.com/kamailio/kamailio/commit/e409ad5bc13b23ec171d9b66f937cd75...
---
diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c index 80dee60c75b..772beb0fe0b 100644 --- a/src/modules/dialog/dialog.c +++ b/src/modules/dialog/dialog.c @@ -856,14 +856,6 @@ static void mod_destroy(void) dialog_update_db(0, 0); destroy_dlg_db(); } - dlg_bridge_destroy_hdrs(); - /* no DB interaction from now on */ - dlg_db_mode = DB_MODE_NONE; - destroy_dlg_table(); - destroy_dlg_timer(); - destroy_dlg_callbacks(DLGCB_CREATED | DLGCB_LOADED); - destroy_dlg_handlers(); - destroy_dlg_profiles(); }