Maxence, hello.

On 25 Nov 2011, at 10:12, Maxence Guesdon wrote:

> 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.

See feature request <http://bugs.librdf.org/mantis/view.php?id=365>, and Dave's 
comments below it, for a potential gotcha here.

I've implemented a librdf binding for Racket 
<http://nxg.me.uk/dist/racket-librdf/>, so I've run into the same GC problems 
as you are (I suspect) about to run into.

I _believe_ that my code plays nice with the GC.  Possibly, therefore, my 
wrapper would be of interest to you, even though it's for a different language 
-- do get in touch if you want to compare notes.

Best wishes,

Norman


-- 
Norman Gray  :  http://nxg.me.uk

_______________________________________________
redland-dev mailing list
[email protected]
http://lists.librdf.org/mailman/listinfo/redland-dev

Reply via email to