This does not ask the C ++ question as an operating system question.
All operating systems that I know of will return the normal memory that was allocated. This is because the distribution usually comes from the private address space of the processes, which will be returned upon exit.
, . , , , ( , ).