Memory leakage fixed
- A couple of memory leakages occurred during compaction. The compaction function and FDB close function have been fixed, but not sure whether other leakages exist or not.
- Simple memory leakage detection code has been added.