summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-02-19 06:22:46 +0000
committerDavid Robillard <d@drobilla.net>2007-02-19 06:22:46 +0000
commit94ba8d13d52b145f0684f75a31ade64172bc95db (patch)
treee19dadd79209a7ac692238facfbd6c230bf9516e /src
parent25d13653ede7fdda4f08cd1e57c73a3c186a7b50 (diff)
downloadlilv-94ba8d13d52b145f0684f75a31ade64172bc95db.tar.gz
lilv-94ba8d13d52b145f0684f75a31ade64172bc95db.tar.bz2
lilv-94ba8d13d52b145f0684f75a31ade64172bc95db.zip
More memory error/leak fixes.
git-svn-id: http://svn.drobilla.net/lad/slv2@319 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/library.c4
-rw-r--r--src/plugin.c3
2 files changed, 3 insertions, 4 deletions
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;