From 48e05557b8afac26bcdd0416ef0ab9a18037e529 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 17 Nov 2014 06:43:53 +0000 Subject: Fix a few minor/unlikely memory errors. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5484 a436a847-0d15-0410-975c-d299462d15a1 --- utils/lv2bench.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils') 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; } } -- cgit v1.2.1