[redland-dev] implicit free

Maxence Guesdon Maxence.Guesdon at inria.fr
Fri Nov 25 11:12:37 CET 2011


Hello,

Sorry if the answer is obvious but...

Looking at example1.c:
  https://github.com/dajobe/librdf/blob/master/examples/example1.c
Line 104, a new statement is created from nodes.
Line 111, the statement is freed.

I wonder if freeing the statement also frees the nodes.
In fact, I wonder if there is a kind of recursive free through all
structures.

Context: I just began an OCaml binding to librdf and I'm trying to play
well with the garbage collector.

Regards,

-- 
Maxence Guesdon



More information about the redland-dev mailing list