Repairs

[profiler]
Memory usage: real: 42205184, emalloc: 41096920
Code ProfilerTimeCntEmallocRealMem