mirror of
https://github.com/php/php-src.git
synced 2026-03-29 03:32:20 +02:00
fix PECL bug #5571 (oci_new_connect() not closed by oci_close())
This commit is contained in:
@@ -601,7 +601,9 @@ void php_oci_collection_close(php_oci_collection *collection TSRMLS_DC)
|
||||
php_oci_error(connection->err, connection->errcode TSRMLS_CC);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
zend_list_delete(collection->connection->rsrc_id);
|
||||
|
||||
efree(collection);
|
||||
return;
|
||||
} /* }}} */
|
||||
|
||||
@@ -470,6 +470,8 @@ void php_oci_lob_free (php_oci_descriptor *descriptor TSRMLS_DC)
|
||||
}
|
||||
|
||||
PHP_OCI_CALL(OCIDescriptorFree, (descriptor->descriptor, descriptor->type));
|
||||
|
||||
zend_list_delete(descriptor->connection->rsrc_id);
|
||||
efree(descriptor);
|
||||
} /* }}} */
|
||||
|
||||
|
||||
@@ -613,7 +613,8 @@ void php_oci_statement_free(php_oci_statement *statement TSRMLS_DC)
|
||||
zend_hash_destroy(statement->defines);
|
||||
efree(statement->defines);
|
||||
}
|
||||
|
||||
|
||||
zend_list_delete(statement->connection->rsrc_id);
|
||||
efree(statement);
|
||||
} /* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user