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

luaL_ref failures result in leaked memory #6

Closed
daurnimator opened this issue Oct 3, 2016 · 1 comment
Closed

luaL_ref failures result in leaked memory #6

daurnimator opened this issue Oct 3, 2016 · 1 comment
Labels

Comments

@daurnimator
Copy link
Owner

daurnimator commented Oct 3, 2016

If luaL_ref fails, then lua longjmps out of the code, meaning that callback data does not get freed.


Fixing this should require a very different structure for holding references to callback functions.

@daurnimator
Copy link
Owner Author

4e95fff also introduces a ref leak if any functions longjmp out. They should be fixed along with this issue.

daurnimator added a commit that referenced this issue Nov 4, 2017
daurnimator added a commit that referenced this issue Nov 4, 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

1 participant