summaryrefslogtreecommitdiff
path: root/ext/pdo_oci/oci_statement.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2013-01-15 15:31:49 +0800
committerXinchen Hui <laruence@php.net>2013-01-15 15:31:49 +0800
commit4fcf4e084508ae18dddc02891f7c6fb10e49447e (patch)
tree96c6f3682b70a8bd975a7607b62bdd2a98ddcfdb /ext/pdo_oci/oci_statement.c
parent6a065876b9212404daaf8fee1708834da83dac56 (diff)
downloadphp-git-4fcf4e084508ae18dddc02891f7c6fb10e49447e.tar.gz
Fixed bug #57702 (Multi-row BLOB fetches)
Diffstat (limited to 'ext/pdo_oci/oci_statement.c')
-rw-r--r--ext/pdo_oci/oci_statement.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/pdo_oci/oci_statement.c b/ext/pdo_oci/oci_statement.c
index 2a93a66a84..dcb9557803 100644
--- a/ext/pdo_oci/oci_statement.c
+++ b/ext/pdo_oci/oci_statement.c
@@ -99,7 +99,7 @@ static int oci_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
switch (S->cols[i].dtype) {
case SQLT_BLOB:
case SQLT_CLOB:
- /* do nothing */
+ OCIDescriptorFree(S->cols[i].data, OCI_DTYPE_LOB);
break;
default:
efree(S->cols[i].data);
@@ -654,7 +654,6 @@ static int oci_blob_close(php_stream *stream, int close_handle TSRMLS_DC)
if (close_handle) {
OCILobClose(self->S->H->svc, self->S->err, self->lob);
- OCIDescriptorFree(self->lob, OCI_DTYPE_LOB);
efree(self);
}