summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2008-04-02 14:56:43 +0000
committerAntony Dovgal <tony2001@php.net>2008-04-02 14:56:43 +0000
commit8f16e0b75c37e5977ed0a41caf700de5bd81289f (patch)
treeef85e5f2269cea2166ba3bd7003d373cd3379a8c
parentb0b7f4eed1d191402b7ea444e997a08fbcb97969 (diff)
downloadphp-git-8f16e0b75c37e5977ed0a41caf700de5bd81289f.tar.gz
MFH
-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 4031142b2d..d7e53191d4 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 a07937a9a4..94cc4319b3 100644
--- a/ext/oci8/oci8_statement.c
+++ b/ext/oci8/oci8_statement.c
@@ -776,7 +776,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);