From 1e3553bd428f18eefbc4571428317fc69721500e Mon Sep 17 00:00:00 2001 From: "Thies C. Arntzen" Date: Mon, 9 Jul 2001 06:48:15 +0000 Subject: [PATCH] use erealloc for zvals! --- ext/oci8/oci8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index ccacdb0646..9fb27cf575 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -650,7 +650,7 @@ _oci_bind_post_exec(void *data) zval_dtor(val); ZVAL_NULL(val); } else if (bind->zval->type == IS_STRING) { - bind->zval->value.str.val = realloc(bind->zval->value.str.val, bind->zval->value.str.len+1); + bind->zval->value.str.val = erealloc(bind->zval->value.str.val, bind->zval->value.str.len+1); bind->zval->value.str.val[ bind->zval->value.str.len ] = '\0'; } -- 2.40.0