1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00

@- Fixed crash on OCI?Logon() failure. (thies)

This commit is contained in:
Thies C. Arntzen
2000-07-03 15:05:46 +00:00
parent 1a6116c1f2
commit d58ff645ff
+3 -3
View File
@@ -1933,7 +1933,6 @@ static oci_session *_oci_open_session(oci_server* server,char *username,char *pa
/* Free Temporary Service Context */
OCIHandleFree((dvoid *) svchp, (ub4) OCI_HTYPE_SVCCTX);
if (exclusive) {
psession = session;
} else {
@@ -2024,12 +2023,13 @@ _oci_close_session(oci_session *session)
if (OCI(error) != OCI_SUCCESS) {
oci_error(OCI(pError), "_oci_close_session: OCISessionEnd", OCI(error));
}
OCIHandleFree((dvoid *) svchp, (ub4) OCI_HTYPE_SVCCTX);
} else {
oci_debug("_oci_close_session: logging-off DEAD session");
}
OCIHandleFree((dvoid *) svchp, (ub4) OCI_HTYPE_SVCCTX);
if (session->pSession) {
OCIHandleFree((dvoid *) session->pSession, (ub4) OCI_HTYPE_SESSION);
}