in reply to Subroutine Memory Leak

I have an ancient (and therefore, likely to be wrong in particulars) of repeatedly calling a 'memory available' function with a (C) program that simply did a lot of allocations and frees. The memory available kept dropping until some threshold, and then started oscillating.

We took this to mean that more was being allocated to the process, and the free list (or equivalent) was not scavenged until it was needed. It may be relevant.