Not sure the goal of this memory leak detector but Lua comes with an
optional component 'ltests.c' that has built-in leak detection. I
The goal is different. Sometimes, we create some lua objects(tables, userdata, etc) and forgot to remove reference after using them.
So we can make a snapshot of vm after some interval of time, and discover the new object from last snapshot.