Skip to content

Fix GH-16604: Memory leaks in SPL constructors - #16673

Closed
ndossche wants to merge 1 commit into
php:PHP-8.2from
ndossche:fix-16604-2
Closed

ndossche wants to merge 1 commit into
php:PHP-8.2from
ndossche:fix-16604-2

Conversation

@ndossche

@ndossche ndossche commented Nov 1, 2024

Copy link
Copy Markdown
Member

No description provided.

@ndossche
ndossche requested a review from Girgias as a code owner November 1, 2024 18:53
@ndossche ndossche linked an issue Nov 1, 2024 that may be closed by this pull request

@Girgias Girgias left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me, thank you :)

Comment thread ext/spl/spl_iterators.c
Comment on lines 667 to 669
if (EG(exception)) {
// TODO: use spl_RecursiveIteratorIterator_free_iterators
zend_object_iterator *sub_iter;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO Comment?

@ndossche ndossche Nov 1, 2024 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I thought it's best to only do the refactor on master. So I left the TODO for when I merge up or for a follow-up

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, makes sense.

@ndossche ndossche closed this in 886a528 Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory leaks in SPL constructors

2 participants