[redland-dev] Redland 1.0.1 Segfault

Dave Beckett dave.beckett at bristol.ac.uk
Thu Jun 2 12:03:49 BST 2005


I got a similar crash with perl and could debug it, maybe this'll fix it
as it's just a 1 line change and seems the probable cause.

Dave
-------------- next part --------------
Index: rdf_stream.c
===================================================================
diff -c -r1.49 -r1.50
--- rdf_stream.c	18 May 2005 15:56:44 -0000	1.49
+++ rdf_stream.c	2 Jun 2005 11:02:01 -0000	1.50
@@ -120,7 +120,8 @@
 void
 librdf_free_stream(librdf_stream* stream) 
 {
-  stream->finished_method(stream->context);
+  if(stream->finished_method)
+    stream->finished_method(stream->context);
 
   if(stream->map_list) {
     librdf_list_foreach(stream->map_list,


More information about the redland-dev mailing list