jmckaskill / luaffi

Standalone FFI library for calling C functions from lua. Compatible with the luajit FFI interface.
469 stars 84 forks source link

Memory leak with 5.2 #24

Closed jmckaskill closed 12 years ago

jmckaskill commented 12 years ago

The greyscale test on http://luajit.org/ext_ffi.html seems to be leaking with 5.2, but not with 5.1.

jamesgraves commented 12 years ago

I believe this is a bug with Lua 5.2.0, which seems to be fixed with the 5.2.1-rc1. I re-ran the program with 5.2.1-rc1 and the memory usage stayed steady throughout the run, without needing to call collectgarbage().