mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +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
|
@ -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;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
|
@ -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);
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue