Hello, In function librdf_storage_postgresql_find_statements_with_options of rdf_storage_postgresql.c, the function gets a new db handle with librdf_storage_postgresql_get_handle but in case of success, it is not released.
In fact, it is, but later, when the returned stream is freed, thanks to the pointer on librdf_storage_postgresql_find_statements_in_context_finished passed as finalization function to librdf_new_stream. Wouldn't it be better to release the db handle as soon as possible ? For example, by adding librdf_storage_postgresql_release_handle(sos->storage, sos->handle); just before the final return stream; ? Regards, Maxence _______________________________________________ redland-dev mailing list [email protected] http://lists.librdf.org/mailman/listinfo/redland-dev
