php / pecl-file_formats-yaml

YAML-1.1 parser and emitter
https://pecl.php.net/package/yaml
MIT License
72 stars 32 forks source link

Fix memory leak in y_write_object_callback() #57

Closed cmb69 closed 3 years ago

cmb69 commented 3 years ago

We need to release the retval of call_user_function().

This memory leak could be observed when running yaml_emit_008.phpt and yaml_emit_009.phpt with a debug build or under a leak checker.