Thanks for the quick reply. 

You're right. When I tried to boil it down to a minimal example, I incorrectly attributed my original problem to linked structures. This is because if I create a large tuple instead of a linked structure in my example, then the OS visible size does go down and up in both Linux and OS/X.

Thanks again,
Christian

On 17 February 2015 at 13:10, Armin Rigo <arigo@tunes.org> wrote:
Hi Christian,

On 15 February 2015 at 21:36, Christian Walder
<walderchristian@gmail.com> wrote:
> I seem to be running into a problem with freeing memory.

The problem you have, as I understand it, is that the OS-visible size
of the process goes up but not down.  This is expected.  I don't
really know why OS/X versus Linux makes any difference.

Someone should collect a few links to existing answers into a FAQ entry...


A bientôt,

Armin