Module: kamailio Branch: master Commit: 43d3dca0afecbaedc24dbc3bf5bcc3fa8aa1f871 URL: https://github.com/kamailio/kamailio/commit/43d3dca0afecbaedc24dbc3bf5bcc3fa8aa1f871
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2025-12-09T13:50:40+01:00 pdt: remove destroy of internal structures on shutdown --- Modified: src/modules/pdt/pdt.c --- Diff: https://github.com/kamailio/kamailio/commit/43d3dca0afecbaedc24dbc3bf5bcc3fa8aa1f871.diff Patch: https://github.com/kamailio/kamailio/commit/43d3dca0afecbaedc24dbc3bf5bcc3fa8aa1f871.patch --- diff --git a/src/modules/pdt/pdt.c b/src/modules/pdt/pdt.c index b44317469b8..da875bb826c 100644 --- a/src/modules/pdt/pdt.c +++ b/src/modules/pdt/pdt.c @@ -254,18 +254,8 @@ static int child_init(int rank) static void mod_destroy(void) { LM_DBG("cleaning up\n"); - if(_ptree != NULL) { - if(*_ptree != NULL) - pdt_free_tree(*_ptree); - shm_free(_ptree); - } - if(db_con != NULL && pdt_dbf.close != NULL) + if(db_con != NULL && pdt_dbf.close != NULL) { pdt_dbf.close(db_con); - /* destroy lock */ - if(pdt_lock) { - lock_destroy(pdt_lock); - lock_dealloc(pdt_lock); - pdt_lock = 0; } } _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
