From 94ba8d13d52b145f0684f75a31ade64172bc95db Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 19 Feb 2007 06:22:46 +0000 Subject: More memory error/leak fixes. git-svn-id: http://svn.drobilla.net/lad/slv2@319 a436a847-0d15-0410-975c-d299462d15a1 --- src/library.c | 4 ++-- src/plugin.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/library.c b/src/library.c index 45f298c..4ad97c3 100644 --- a/src/library.c +++ b/src/library.c @@ -36,9 +36,9 @@ slv2_init() void slv2_finish() { - rasqal_finish(); - raptor_free_uri(slv2_ontology_uri); slv2_ontology_uri = NULL; + + rasqal_finish(); } diff --git a/src/plugin.c b/src/plugin.c index 64452bb..8441aec 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -126,11 +126,10 @@ slv2_plugin_verify(SLV2Plugin plugin) rasqal_query_results_next(results); } - free(query_str); rasqal_free_query_results(results); if ( ! (has_type && has_name && has_license && has_port) ) { - fprintf(stderr, "Invalid LV2 Plugin %s:\n", slv2_plugin_get_uri(plugin)); + fprintf(stderr, "Invalid LV2 Plugin %s\n", slv2_plugin_get_uri(plugin)); return false; } else { return true; -- cgit v1.2.1