mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
bug fix for bug #15758, a double free'ing of an ODBC connection
This commit is contained in:
parent
e2ad07fdcf
commit
ce39ba7265
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user