Skip to content

Commit 0d23551

Browse files
committed
Don't keep dangling pointer to function_name
1 parent b6cc4d2 commit 0d23551

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/intl/converter/converter.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,8 @@ static void php_converter_resolve_callback(zval *zobj,
542542
if (zend_fcall_info_init(&caller, 0, finfo, fcache, NULL, &errstr) == FAILURE) {
543543
php_converter_throw_failure(objval, U_INTERNAL_PROGRAM_ERROR, "Error setting converter callback: %s", errstr);
544544
}
545-
zval_dtor(&caller);
545+
zend_array_destroy(Z_ARR(caller));
546+
ZVAL_UNDEF(&finfo->function_name);
546547
if (errstr) {
547548
efree(errstr);
548549
}

0 commit comments

Comments
 (0)