Module: kamailio
Branch: master
Commit: d56b7ee42fffe9635bb0fde8427c9ec447a0f771
URL:
https://github.com/kamailio/kamailio/commit/d56b7ee42fffe9635bb0fde8427c9ec…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/d56b7ee42fffe9635bb0fde8427c9ec…
Patch:
https://github.com/kamailio/kamailio/commit/d56b7ee42fffe9635bb0fde8427c9ec…
---
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