summaryrefslogtreecommitdiff
path: root/ext/pdo_oci
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-12-21 00:37:01 +0000
committerWez Furlong <wez@php.net>2004-12-21 00:37:01 +0000
commit0a42a1f422874fa3c7d96fb9a02f8b869f09867a (patch)
tree69e248e6c25a75ca826a2284ae1bc89c4ef4c06c /ext/pdo_oci
parent4157e50c0097e089bdd1f2e5d428db7697037af9 (diff)
downloadphp-git-0a42a1f422874fa3c7d96fb9a02f8b869f09867a.tar.gz
Errr... fix leak
Diffstat (limited to 'ext/pdo_oci')
-rwxr-xr-xext/pdo_oci/oci_statement.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_oci/oci_statement.c b/ext/pdo_oci/oci_statement.c
index 07b2237d94..b35462c9d8 100755
--- a/ext/pdo_oci/oci_statement.c
+++ b/ext/pdo_oci/oci_statement.c
@@ -135,7 +135,7 @@ static sb4 oci_bind_input_cb(dvoid *ctx, OCIBind *bindp, ub4 iter, ub4 index, dv
ub4 *alenp, ub1 *piecep, dvoid **indpp)
{
struct pdo_bound_param_data *param = (struct pdo_bound_param_data*)ctx;
- pdo_oci_bound_param *P = (pdo_oci_bound_param*)ecalloc(1, sizeof(pdo_oci_bound_param));
+ pdo_oci_bound_param *P = (pdo_oci_bound_param*)param->driver_data;
TSRMLS_FETCH();
if (!param || !param->parameter) {
@@ -168,7 +168,7 @@ static sb4 oci_bind_output_cb(dvoid *ctx, OCIBind *bindp, ub4 iter, ub4 index, d
ub1 *piecep, dvoid **indpp, ub2 **rcodepp)
{
struct pdo_bound_param_data *param = (struct pdo_bound_param_data*)ctx;
- pdo_oci_bound_param *P = (pdo_oci_bound_param*)ecalloc(1, sizeof(pdo_oci_bound_param));
+ pdo_oci_bound_param *P = (pdo_oci_bound_param*)param->driver_data;
TSRMLS_FETCH();
if (!param || !param->parameter) {