fix PECL bug #5571 (oci_new_connect() not closed by oci_close())

This commit is contained in:
Antony Dovgal 2005-10-03 13:02:14 +00:00
parent 12c2b1f128
commit cc96f31ac7
3 changed files with 7 additions and 2 deletions

View file

@ -602,6 +602,8 @@ void php_oci_collection_close(php_oci_collection *collection TSRMLS_DC)
} }
} }
zend_list_delete(collection->connection->rsrc_id);
efree(collection); efree(collection);
return; return;
} /* }}} */ } /* }}} */

View file

@ -470,6 +470,8 @@ void php_oci_lob_free (php_oci_descriptor *descriptor TSRMLS_DC)
} }
PHP_OCI_CALL(OCIDescriptorFree, (descriptor->descriptor, descriptor->type)); PHP_OCI_CALL(OCIDescriptorFree, (descriptor->descriptor, descriptor->type));
zend_list_delete(descriptor->connection->rsrc_id);
efree(descriptor); efree(descriptor);
} /* }}} */ } /* }}} */

View file

@ -614,6 +614,7 @@ void php_oci_statement_free(php_oci_statement *statement TSRMLS_DC)
efree(statement->defines); efree(statement->defines);
} }
zend_list_delete(statement->connection->rsrc_id);
efree(statement); efree(statement);
} /* }}} */ } /* }}} */