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

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

db_unixodbc: call db_do_con_free at the end of async task execution

---

Modified: src/modules/db_unixodbc/dbase.c

---

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

---

diff --git a/src/modules/db_unixodbc/dbase.c b/src/modules/db_unixodbc/dbase.c
index a47df4e7707..fd3326912da 100644
--- a/src/modules/db_unixodbc/dbase.c
+++ b/src/modules/db_unixodbc/dbase.c
@@ -180,7 +180,7 @@ void db_unixodbc_async_exec_task(void *param)
                LM_ERR("failed to execute query [%.*s] on async worker\n", 
p[1].len,
                                p[1].s);
        }
-       pkg_free(dbc);
+       db_do_con_free(dbc);
 }
 /**
  * Execute a raw SQL query via core async framework.

_______________________________________________
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