mem debug memory leak detection preparation