Module: kamailio
Branch: 5.0
Commit: bec8ca379781bccb271591a270840f93b4d1af40
URL:
https://github.com/kamailio/kamailio/commit/bec8ca379781bccb271591a270840f9…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: 2017-04-03T11:15:09-04:00
db_oracle: avoid double free on connection error
(cherry picked from commit 6d9e0202b1817aa19bfaf4502749d817d54f850a)
---
Modified: src/modules/db_oracle/ora_con.c
---
Diff:
https://github.com/kamailio/kamailio/commit/bec8ca379781bccb271591a270840f9…
Patch:
https://github.com/kamailio/kamailio/commit/bec8ca379781bccb271591a270840f9…
---
diff --git a/src/modules/db_oracle/ora_con.c b/src/modules/db_oracle/ora_con.c
index 8c84126..a18c925 100644
--- a/src/modules/db_oracle/ora_con.c
+++ b/src/modules/db_oracle/ora_con.c
@@ -153,7 +153,6 @@ void db_oracle_free_connection(ora_con_t* con)
OCIHandleFree(con->errhp, OCI_HTYPE_ERROR);
if (con->envhp)
OCIHandleFree(con->envhp, OCI_HTYPE_ENV);
- free_db_id(con->hdr.id);
pkg_free(con);
}