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

DDC-3914: [GH-1515] [DDC-3146] Remove event listener from abstract hydrator in cleanup function #4772

Closed
doctrinebot opened this issue Sep 24, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@doctrinebot
Copy link

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of emiel-silverstreet:

Url: #1515

Message:

When the iterate function is invoked an event listener is added, but never removed. This will keep a reference to the abstract hydrator in the event manager, which will prevent the php garbage collector from removing the instance. When used multiple times this will create a memory leak because the event manager will be filled with references to unused hydrators. This fix will remove the event listener in the cleanup function which is invoked when the hydrator is finished, allowing the class to be garbage collected.

@doctrinebot doctrinebot added the Bug label Dec 7, 2015
@Ocramius Ocramius modified the milestones: 2.6.0, 2.5.7 Jun 24, 2017
@Ocramius Ocramius assigned Ocramius and unassigned beberlei Jun 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants