Re:Three kinds of memory leaks
by gpderetta on Tuesday May 01, 2018 @05:13AM
(#16965535)
Note that some allocators (including the standard glibc allocator) do use mmap internally for some allocation sizes.
In this case the memory can be returned to the os when the whole block is freed.
Some allocators even use mmap exclusively.