From: Thies C. Arntzen Date: Sun, 7 Jan 2001 11:43:07 +0000 (+0000) Subject: fix small leak in ociexecute() X-Git-Tag: php-4.0.5RC1~699 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d79071b2daede36a5f6ee6677d41a3537000ba81;p=php fix small leak in ociexecute() fixes: #8573 submitted by: tcarroll@chc-chimes.com --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index d6129d4d98..1b10b72106 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -1219,12 +1219,6 @@ oci_execute(oci_statement *statement, char *func,ub4 mode) statement->columns = emalloc(sizeof(HashTable)); zend_hash_init(statement->columns, 13, NULL, _oci_column_hash_dtor, 0); - OCIHandleAlloc(OCI(pEnv), - (dvoid **)¶m, - OCI_DTYPE_PARAM, - 0, - NULL); - counter = 1; statement->error = @@ -1261,7 +1255,7 @@ oci_execute(oci_statement *statement, char *func,ub4 mode) (dvoid *)statement->pStmt, OCI_HTYPE_STMT, statement->pError, - (dvoid*)¶m, + (dvoid**)¶m, counter)); if (statement->error) { return 0; /* XXX we loose memory!!! */