Repairs

[profiler]
Memory usage: real: 42467328, emalloc: 41094600
Code ProfilerTimeCntEmallocRealMem