bug fix for bug #15758, a double free'ing of an ODBC connection

This commit is contained in:
Dan Kalowsky 2002-04-26 14:56:34 +00:00
parent e2ad07fdcf
commit ce39ba7265

View File

@ -2152,8 +2152,13 @@ try_and_get_another_connection:
if(ret != SQL_SUCCESS || len == 0) {
zend_hash_del(&EG(persistent_list), hashed_details, hashed_len + 1);
safe_odbc_disconnect(db_conn->hdbc);
SQLFreeConnect(db_conn->hdbc);
/* Commented out to fix a possible double closure error
* when working with persistent connections as submitted by
* bug #15758
*
* safe_odbc_disconnect(db_conn->hdbc);
* SQLFreeConnect(db_conn->hdbc);
*/
goto try_and_get_another_connection;
}
}