Module: kamailio
Branch: master
Commit: 56cd7a0d38c8bbee6cc3e981b7a2b78b6d47257d
URL:
https://github.com/kamailio/kamailio/commit/56cd7a0d38c8bbee6cc3e981b7a2b78…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-10-22T23:08:44+02:00
db_postgres: don't free pg query structure in store result function
- it is done when freeing the result
---
Modified: modules/db_postgres/km_dbase.c
---
Diff:
https://github.com/kamailio/kamailio/commit/56cd7a0d38c8bbee6cc3e981b7a2b78…
Patch:
https://github.com/kamailio/kamailio/commit/56cd7a0d38c8bbee6cc3e981b7a2b78…
---
diff --git a/modules/db_postgres/km_dbase.c b/modules/db_postgres/km_dbase.c
index 50ffd7f..816a512 100644
--- a/modules/db_postgres/km_dbase.c
+++ b/modules/db_postgres/km_dbase.c
@@ -602,7 +602,6 @@ int db_postgres_store_result(const db1_con_t* _con, db1_res_t** _r)
}
done:
- db_postgres_free_query(_con);
return (rc);
}