diff options
author | David Robillard <d@drobilla.net> | 2014-11-17 06:43:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-17 06:43:53 +0000 |
commit | 48e05557b8afac26bcdd0416ef0ab9a18037e529 (patch) | |
tree | c4430f6317092b41a8381ed15502f4dde8e86f29 /utils/lv2bench.c | |
parent | ee04d3ddaf6ad278000cad7acd413f76b6bfc535 (diff) | |
download | lilv-48e05557b8afac26bcdd0416ef0ab9a18037e529.tar.gz lilv-48e05557b8afac26bcdd0416ef0ab9a18037e529.tar.bz2 lilv-48e05557b8afac26bcdd0416ef0ab9a18037e529.zip |
Fix a few minor/unlikely memory errors.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5484 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils/lv2bench.c')
-rw-r--r-- | utils/lv2bench.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/lv2bench.c b/utils/lv2bench.c index 30a4aaf..e585fbd 100644 --- a/utils/lv2bench.c +++ b/utils/lv2bench.c @@ -95,6 +95,7 @@ bench(const LilvPlugin* p, uint32_t sample_count, uint32_t block_size) fprintf(stderr, "<%s> requires feature <%s>, skipping\n", uri, lilv_node_as_uri(feature)); free(buf); + uri_table_destroy(&uri_table); return 0.0; } } @@ -104,6 +105,7 @@ bench(const LilvPlugin* p, uint32_t sample_count, uint32_t block_size) fprintf(stderr, "Failed to instantiate <%s>\n", lilv_node_as_uri(lilv_plugin_get_uri(p))); free(buf); + uri_table_destroy(&uri_table); return 0.0; } @@ -128,6 +130,7 @@ bench(const LilvPlugin* p, uint32_t sample_count, uint32_t block_size) lilv_instance_free(instance); free(buf); free(controls); + uri_table_destroy(&uri_table); return 0.0; } } else if (lilv_port_is_a(p, port, atom_AtomPort)) { @@ -138,6 +141,7 @@ bench(const LilvPlugin* p, uint32_t sample_count, uint32_t block_size) lilv_instance_free(instance); free(buf); free(controls); + uri_table_destroy(&uri_table); return 0.0; } } |