mirror of
https://github.com/php/php-src.git
synced 2026-03-27 17:52:16 +01:00
decrement parent's refcount only when destroying the child, not when decrementing child's refcount
This commit is contained in:
@@ -1550,10 +1550,6 @@ PHP_FUNCTION(oci_free_statement)
|
||||
PHP_OCI_ZVAL_TO_STATEMENT(z_statement, statement);
|
||||
|
||||
zend_list_delete(statement->id);
|
||||
if (statement->parent_stmtid) {
|
||||
zend_list_delete(statement->parent_stmtid);
|
||||
}
|
||||
|
||||
RETURN_TRUE;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
@@ -780,7 +780,11 @@ void php_oci_statement_free(php_oci_statement *statement TSRMLS_DC)
|
||||
zend_hash_destroy(statement->defines);
|
||||
efree(statement->defines);
|
||||
}
|
||||
|
||||
|
||||
if (statement->parent_stmtid) {
|
||||
zend_list_delete(statement->parent_stmtid);
|
||||
}
|
||||
|
||||
zend_list_delete(statement->connection->rsrc_id);
|
||||
efree(statement);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user