diff options
author | David Robillard <d@drobilla.net> | 2007-02-19 06:22:46 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-02-19 06:22:46 +0000 |
commit | 94ba8d13d52b145f0684f75a31ade64172bc95db (patch) | |
tree | e19dadd79209a7ac692238facfbd6c230bf9516e | |
parent | 25d13653ede7fdda4f08cd1e57c73a3c186a7b50 (diff) | |
download | lilv-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
-rw-r--r-- | src/library.c | 4 | ||||
-rw-r--r-- | src/plugin.c | 3 | ||||
-rw-r--r-- | utils/lv2_inspect.c | 1 | ||||
-rw-r--r-- | utils/lv2_list.c | 1 |
4 files changed, 4 insertions, 5 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; diff --git a/utils/lv2_inspect.c b/utils/lv2_inspect.c index 31dd2f9..a993dee 100644 --- a/utils/lv2_inspect.c +++ b/utils/lv2_inspect.c @@ -139,6 +139,7 @@ main(int argc, char** argv) print_plugin(p); + slv2_plugins_free(plugins); slv2_finish(); return 0; diff --git a/utils/lv2_list.c b/utils/lv2_list.c index 0112bc7..cab660a 100644 --- a/utils/lv2_list.c +++ b/utils/lv2_list.c @@ -41,7 +41,6 @@ main()//int argc, char** argv) list_plugins(plugins); slv2_plugins_free(plugins); - slv2_finish(); return 0; |