I'm using some C functions like these:<div><br></div><div> char *str = allocateNewString();</div><div><br></div><div>And this:</div><div><div><br></div><div> Object *obj = constructObject();</div><div> // etc</div>
<div> freeObject(obj);</div></div><div><br></div><div><br></div><div>Do I need to free the memory in both cases? Can I someway register them on GC?</div>