Christian Costa titan.costa@gmail.com wrote:
Out of curiosity. Not freeing these memory allocations shouldn't disturb Valgrind to report false memory leaks?
Avoiding heap access on process exit should avoid possible dead locks in case a terminated by ExitProcess thread holds the heap lock.