mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Fixed reference counting
This commit is contained in:
parent
d9f6068fd3
commit
79b27dc096
@ -1059,9 +1059,11 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
|
||||
new_index_ptr.type = le_index_ptr;
|
||||
|
||||
if (zend_hash_update_mem(&EG(regular_list), hashed_details, &new_index_ptr, sizeof(zend_resource)) == NULL) {
|
||||
zval_ptr_dtor(return_value);
|
||||
STR_RELEASE(hashed_details);
|
||||
MYSQL_DO_CONNECT_RETURN_FALSE();
|
||||
}
|
||||
Z_ADDREF_P(return_value);
|
||||
MySG(num_links)++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user