History log of /PHP-7.4/ext/spl/tests/filesystemiterator_leak.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 44a80b64 15-Feb-2021 Nikita Popov

Fix leak when breaking out of FilesystemIterator

We need to always destroy current, not just when iter.data is not
set.

Take this opportunity to clean up the iterator destructor

Fix leak when breaking out of FilesystemIterator

We need to always destroy current, not just when iter.data is not
set.

Take this opportunity to clean up the iterator destructor code a
bit, to remove redundant checks and incorrect comments.

show more ...