Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear extra updates array to prevent memory leak #543

Conversation

X-Coder264
Copy link
Contributor

@X-Coder264 X-Coder264 commented Feb 20, 2023

Subject

I am targeting this branch, because this is a bug fix.
The extraUpdates array property is never being cleared so this results in memory leaks in long running processes (like Symfony Messenger queues) - now it's gonna be cleared on every $entityManager->clear() call.

Changelog

### Fixed
- Clear extra updates array to prevent memory leak

@VincentLanglet VincentLanglet merged commit 200c4d8 into sonata-project:1.x Feb 20, 2023
@VincentLanglet
Copy link
Member

Thanks

@X-Coder264 X-Coder264 deleted the clear-extra-updates-array-to-prevent-memory-leak branch February 20, 2023 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants