That has absolutely nothing to do with threads. Memory allocated using malloc and friends is nearly never freed until the process is terminated. It is however, assuming you free the memory itself using free() or realloc() with zero size, recycled for other malloc calls later on.

--
Mats