Sorry I need to go to eat so I need to be gone but you need to know that usually C don't usually hold onto a ressource while pushing the responsibility of managing said ressource onto you. It's a very dumb thing to do and c libraries know this, that is why most of the time you have the "alloc, use, free" api that's easier to reason about, you dont usually worry about this. What you need to worry more about is when you pass "Nim data" so to speak to the C side such as a `ref` so you have to use `GC_ref` and `GC_unref` for example.