There are several answer possible depending on the...
# general
s
There are several answer possible depending on the details; it might very well be that there's a memory leak. But on Linux it could also be libc/malloc retaining freed memory (for performance reason on the next allocations).