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

Author: Federico Cabiddu <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2025-12-09T12:10:25+01:00

db_mysql: call db_do_con_free at the end of async task execution

---

Modified: src/modules/db_mysql/km_dbase.c

---

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

---

diff --git a/src/modules/db_mysql/km_dbase.c b/src/modules/db_mysql/km_dbase.c
index fa2822bf357..4246e04a03a 100644
--- a/src/modules/db_mysql/km_dbase.c
+++ b/src/modules/db_mysql/km_dbase.c
@@ -149,7 +149,7 @@ void db_mysql_async_exec_task(void *param)
                LM_ERR("failed to execute query [%.*s] on async worker\n",
                                (p[1].len > 100) ? 100 : p[1].len, p[1].s);
        }
-       pkg_free(dbc);
+       db_do_con_free(dbc);
 }
 
 /**

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

Reply via email to