mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
fix PECL bug #5571 (oci_new_connect() not closed by oci_close())
This commit is contained in:
parent
12c2b1f128
commit
cc96f31ac7
3 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
} /* }}} */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue