1
0
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:
Antony Dovgal
2008-04-02 14:56:03 +00:00
parent 9dea5a0747
commit 3fbf99a283
2 changed files with 5 additions and 5 deletions

View File

@@ -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;
}
/* }}} */

View File

@@ -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);