[redland-dev] [patch] librdf_free_foo(0)

Sebastian Trüg strueg at mandriva.com
Wed Apr 23 18:26:52 BST 2008


Full ack. I actually wrote myself wrapper methods for that but then again I am 
a C++ developer....

On Wednesday 23 April 2008 18:25:47 Michael Stahl wrote:
> hello!
>
> why do the librdf destructors not handle 0 arguments correctly?
> i.e. they should just return, and not segfault like they currently do.
> after all, the C free function and the C++ operator delete handle 0
> arguments the same, so i would guess that many people would implictily
> assume that anything that frees stuff acts the same way.
>
> so, since writing this patch was less work than fixing the >2k lines of
> code that i wrote last week, here is a patch that fixes all the publicly
> documented librdf_free_foo functions.
> will this go in the next release?
>
> regards,
> michael stahl
>
> PS: just for the record, i would find it useful if there were a tarball of
> librdf that does not contain raptor and rasqal




More information about the redland-dev mailing list