mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.4'
* PHP-8.4: Fix memory leak on ZEND_FFI_TYPE_CHAR conversion failure
This commit is contained in:
commit
4e9cde758e
1 changed files with 1 additions and 0 deletions
|
@ -808,6 +808,7 @@ again:
|
|||
if (ZSTR_LEN(str) == 1) {
|
||||
*(char*)ptr = ZSTR_VAL(str)[0];
|
||||
} else {
|
||||
zend_tmp_string_release(tmp_str);
|
||||
zend_ffi_assign_incompatible(value, type);
|
||||
return FAILURE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue