Repairs

[profiler]
Memory usage: real: 43253760, emalloc: 42011704
Code ProfilerTimeCntEmallocRealMem