You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #60515 [Mailer] Fix memory leak with mailer.message_logger_listener (andrew-demb)
This PR was squashed before being merged into the 7.3 branch.
Discussion
----------
[Mailer] Fix memory leak with `mailer.message_logger_listener`
| Q | A
| ------------- | ---
| Branch? | 7.3
| Bug fix? | yes
| New feature? | no
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Issues | Fix #50580
| License | MIT
Register `mailer.message_logger_listener` only when profiler enabled to prevent memory leaks as suggested in:
- symfony/symfony#50580 (comment)
- symfony/symfony#50580 (comment)
~~`@stof` can you guide me about the way how to implement your second suggestion too? symfony/symfony#50580 (comment) UPD: resolved
_This change may be considered as a minor BC break - DI service won't be available anymore with disabled profiler._
Commits
-------
b63317d2cf6 [Mailer] Fix memory leak with `mailer.message_logger_listener`
0 commit comments