[redland-dev] implicit free

Norman Gray norman at astro.gla.ac.uk
Fri Nov 25 11:36:10 CET 2011


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



More information about the redland-dev mailing list