check lua memory leak