[feature/lua] Fix leak