]> granicus.if.org Git - php/commit
Fix leak in SplObjectStorage unserialization
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 16 Sep 2019 11:01:59 +0000 (13:01 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 16 Sep 2019 11:02:32 +0000 (13:02 +0200)
commit8873df8e8653e2ffc1709b68f24c4a68536d8b84
treea33e9123b4af58c34877cf5e4608fffc5e806678
parent81cefab7b0236382d269d2c516f7fd3b85c62cc2
Fix leak in SplObjectStorage unserialization

The result of php_var_unserialize always needs to be destroyed,
even if the call failed.
ext/spl/spl_observer.c
ext/standard/tests/serialize/unserialize_leak.phpt [new file with mode: 0644]