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

audio.load(...) leaks memory #1

Closed
bobbens opened this issue Apr 7, 2015 · 3 comments
Closed

audio.load(...) leaks memory #1

bobbens opened this issue Apr 7, 2015 · 3 comments

Comments

@bobbens
Copy link

bobbens commented Apr 7, 2015

I've been trying to debug exactly where it's leaking, but it seems like valgrind and the likes don't like luajit a lot. However, my tests show that indeed audio.load() does leak memory. Reproduce with:

require 'audio'
while true do
   data = audio.load( 'voice.mp3' )
   collectgarbage()
end

It will eventually get killed by the OOM-killer if you let it run long enough.

@soumith
Copy link
Owner

soumith commented Apr 7, 2015

interesting. I'll take a look at this. thanks for the issue.

@soumith
Copy link
Owner

soumith commented Apr 26, 2015

Sorry for the delay, fixed via commit: db6ccf0

@soumith soumith closed this as completed Apr 26, 2015
@bobbens
Copy link
Author

bobbens commented Apr 27, 2015

Thanks for the fix!

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

2 participants