mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed memory leak.
# Found by valgrind w/o zend-mm being used.
This commit is contained in:
parent
8460074372
commit
e656b82956
2 changed files with 6 additions and 0 deletions
|
@ -583,6 +583,9 @@ static void _parameter_string(string *str, zend_function *fptr, struct _zend_arg
|
|||
} else {
|
||||
zend_make_printable_zval(zv, &zv_copy, &use_copy);
|
||||
string_write(str, Z_STRVAL(zv_copy), Z_STRLEN(zv_copy));
|
||||
if (use_copy) {
|
||||
zval_dtor(&zv_copy);
|
||||
}
|
||||
}
|
||||
zval_ptr_dtor(&zv);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue