Function printMemoryLeaks

Prints leaked allocations if memory profiler is enabled, otherwise does nothing

void printMemoryLeaks();