Module: kamailio
Branch: master
Commit: d56b7ee42fffe9635bb0fde8427c9ec447a0f771
URL: 
https://github.com/kamailio/kamailio/commit/d56b7ee42fffe9635bb0fde8427c9ec447a0f771

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2024-11-20T12:08:54+01:00

usrloc: 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/usrloc/usrloc_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/d56b7ee42fffe9635bb0fde8427c9ec447a0f771.diff
Patch: 
https://github.com/kamailio/kamailio/commit/d56b7ee42fffe9635bb0fde8427c9ec447a0f771.patch

---

diff --git a/src/modules/usrloc/usrloc_mod.c b/src/modules/usrloc/usrloc_mod.c
index b3fe462a1d5..932c0fd5f1d 100644
--- a/src/modules/usrloc/usrloc_mod.c
+++ b/src/modules/usrloc/usrloc_mod.c
@@ -561,13 +561,7 @@ static void destroy(void)
                if(synchronize_all_udomains(0, 1) != 0) {
                        LM_ERR("flushing cache failed\n");
                }
-               ul_dbf.close(ul_dbh);
        }
-
-       free_all_udomains();
-
-       /* free callbacks list */
-       destroy_ulcb_list();
 }
 
 /*! \brief

_______________________________________________
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!

Reply via email to