mirror of
https://github.com/php/php-src.git
synced 2024-11-30 21:35:36 +08:00
Fix leak in WDDX serialization
This commit is contained in:
parent
d027bc2add
commit
585c9f3c4b
@ -471,10 +471,6 @@ static void php_wddx_serialize_object(wddx_packet *packet, zval *obj)
|
||||
*/
|
||||
if (call_user_function_ex(CG(function_table), obj, &fname, &retval, 0, 0, 1, NULL) == SUCCESS) {
|
||||
if (!Z_ISUNDEF(retval) && (sleephash = HASH_OF(&retval))) {
|
||||
PHP_CLASS_ATTRIBUTES;
|
||||
|
||||
PHP_SET_CLASS_ATTRIBUTES(obj);
|
||||
|
||||
php_wddx_add_chunk_static(packet, WDDX_STRUCT_S);
|
||||
snprintf(tmp_buf, WDDX_BUF_LEN, WDDX_VAR_S, PHP_CLASS_NAME_VAR);
|
||||
php_wddx_add_chunk(packet, tmp_buf);
|
||||
|
Loading…
Reference in New Issue
Block a user