In that case I have some follow up questions:

Do you have a resource where I can read about that?
Can this somehow be freed? In my case I need to call the fn() function multiple times and after a few iterations I don’t have enough memory left to execute it.