sonata-project / EntityAuditBundle

Audit for Doctrine Entities
https://sonata-project.org
MIT License
633 stars 261 forks source link

Clear extra updates array to prevent memory leak #543

Closed X-Coder264 closed 1 year ago

X-Coder264 commented 1 year ago

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 commented 1 year ago

Thanks