Module: kamailio
Branch: master
Commit: 6d9e0202b1817aa19bfaf4502749d817d54f850a
URL:
https://github.com/kamailio/kamailio/commit/6d9e0202b1817aa19bfaf4502749d81…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: 2017-04-03T11:12:48-04:00
db_oracle: avoid double free on connection error
---
Modified: src/modules/db_oracle/ora_con.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6d9e0202b1817aa19bfaf4502749d81…
Patch:
https://github.com/kamailio/kamailio/commit/6d9e0202b1817aa19bfaf4502749d81…
---
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);
}