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

Channel:pop() is leaking memory #91

Open
jgmdev opened this issue Feb 11, 2022 · 1 comment
Open

Channel:pop() is leaking memory #91

jgmdev opened this issue Feb 11, 2022 · 1 comment

Comments

@jgmdev
Copy link

jgmdev commented Feb 11, 2022

After doing a channel pop the list is rotated but the first element is never freed and ram usage continues growing.

https://github.com/Tangent128/luasdl2/blob/master/src/channel.c#L156

@jgmdev
Copy link
Author

jgmdev commented Feb 13, 2022

As another note the channelClear doesn't reinitializes the first element to null and the last element to first element pointer.

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

No branches or pull requests

1 participant