Skip to content

Conversation

@atoomic
Copy link
Collaborator

@atoomic atoomic commented Oct 10, 2018

Resolves #147

This is providing a unit test to check memory leak
from the provided sample from RT 49456

Test::LeakTrace do detect a leak from the provided sample,
but this is not really a leak, this is just coming from the
fact that Template::Grammar is not reseting its singleton factory
object.

This commit adds a 'convoluted' technique to clear the singleton
on DESTROY when it makes sense.

Upstream-URL: #147

@atoomic atoomic force-pushed the master branch 5 times, most recently from 0c2da20 to e0d5f00 Compare October 11, 2018 22:46
@atoomic atoomic force-pushed the reset-factory branch 2 times, most recently from 604c662 to f8b9b92 Compare April 28, 2024 10:12
Resolves abw#147

This is providing a unit test to check memory leak
from the provided sample from RT 49456

Test::LeakTrace do detect a leak from the provided sample,
but this is not really a leak, this is just coming from the
fact that Template::Grammar is not reseting its singleton factory
object.

This commit adds a 'convoluted' technique to clear the singleton
on DESTROY when it makes sense.

Upstream-URL: abw#147
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant