summaryrefslogtreecommitdiffstats
path: root/src/query.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/query.c')
-rw-r--r--src/query.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/query.c b/src/query.c
index b671ac8..4d259f2 100644
--- a/src/query.c
+++ b/src/query.c
@@ -134,15 +134,18 @@ slv2_plugin_query(SLV2Plugin plugin,
raptor_uri* file_uri = raptor_new_uri((const unsigned char*)file_uri_str);
rasqal_query_add_data_graph(rq, file_uri,
NULL, RASQAL_DATA_GRAPH_BACKGROUND);
+ raptor_free_uri(file_uri);
}
rasqal_query_results* results = rasqal_query_execute(rq);
- assert(results);
rasqal_free_query(rq);
raptor_free_uri(base_uri);
- // FIXME: results leaked?
+ free(header);
+ free(query_str);
+
+ // FIXME: results leaked internally in places?
return results;
/*