mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
Changelog: https://www.kamailio.org/pub/kamailio/5.8.5/ChangeLog Also sanitised port: * Removed DATABASE, DLGS, POSOPS and SWORKER options while build with them by default. * Removed SECSIPID option while there's no the secsipidx library on a freebsd. PR: 284732
24 lines
628 B
C
24 lines
628 B
C
--- src/modules/db_sqlite/dbase.c.orig 2025-01-23 09:07:51 UTC
|
|
+++ src/modules/db_sqlite/dbase.c
|
|
@@ -126,14 +126,17 @@ db1_con_t *db_sqlite_init(const str *_url)
|
|
* No function should be called after this
|
|
*/
|
|
|
|
-static void db_sqlite_free_connection(struct sqlite_connection *con)
|
|
+static void db_sqlite_free_connection(struct pool_con *con)
|
|
{
|
|
+ struct sqlite_connection *_c;
|
|
+
|
|
if(!con)
|
|
return;
|
|
+ _c = (struct sqlite_connection *)con;
|
|
|
|
- sqlite3_close(con->conn);
|
|
- free_db_id(con->hdr.id);
|
|
- pkg_free(con);
|
|
+ sqlite3_close(_c->conn);
|
|
+ free_db_id(_c->hdr.id);
|
|
+ pkg_free(_c);
|
|
}
|
|
|
|
void db_sqlite_close(db1_con_t *_h)
|