diff options
-rw-r--r-- | src/plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c index babb65a..b2af232 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -548,7 +548,8 @@ slv2_plugin_has_feature(SLV2Plugin p, const bool ret = results && (librdf_query_results_get_boolean(results) > 0); - librdf_free_query_results(results); + if (results) + librdf_free_query_results(results); return ret; } |