summaryrefslogtreecommitdiff
path: root/ext/oci8
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2008-04-02 14:56:21 +0000
committerAntony Dovgal <tony2001@php.net>2008-04-02 14:56:21 +0000
commitaa555ca0a9fc417a236c1cf269fb410dd68b7513 (patch)
tree1d674c0b779d7e47e12b8deec1d5aa0706750c6e /ext/oci8
parente96d5501f8432f99ea1e41db5896803b6b1a00ed (diff)
downloadphp-git-aa555ca0a9fc417a236c1cf269fb410dd68b7513.tar.gz
MFH
Diffstat (limited to 'ext/oci8')
-rw-r--r--ext/oci8/oci8_interface.c4
-rw-r--r--ext/oci8/oci8_statement.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/oci8/oci8_interface.c b/ext/oci8/oci8_interface.c
index be343584d8..22de0f3a10 100644
--- a/ext/oci8/oci8_interface.c
+++ b/ext/oci8/oci8_interface.c
@@ -1511,10 +1511,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;
}
/* }}} */
diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c
index b0929c8989..4d4004a44b 100644
--- a/ext/oci8/oci8_statement.c
+++ b/ext/oci8/oci8_statement.c
@@ -767,7 +767,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);