Skip to content

Commit 1e3553b

Browse files
author
Thies C. Arntzen
committed
use erealloc for zvals!
1 parent 28efce4 commit 1e3553b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/oci8/oci8.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ _oci_bind_post_exec(void *data)
650650
zval_dtor(val);
651651
ZVAL_NULL(val);
652652
} else if (bind->zval->type == IS_STRING) {
653-
bind->zval->value.str.val = realloc(bind->zval->value.str.val, bind->zval->value.str.len+1);
653+
bind->zval->value.str.val = erealloc(bind->zval->value.str.val, bind->zval->value.str.len+1);
654654
bind->zval->value.str.val[ bind->zval->value.str.len ] = '\0';
655655
}
656656

0 commit comments

Comments
 (0)