diff options
author | David Robillard <d@drobilla.net> | 2020-12-16 17:01:20 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-16 17:01:20 +0100 |
commit | 2b158ec00eab4f48928846660be8c8d7d40ffda1 (patch) | |
tree | b482a1a1522ee9b8e61cac6b3304adecc1b1aacb | |
parent | 35f6c636982f174f344cccbe54d61bf1fc7618fd (diff) | |
download | lilv-2b158ec00eab4f48928846660be8c8d7d40ffda1.tar.gz lilv-2b158ec00eab4f48928846660be8c8d7d40ffda1.tar.bz2 lilv-2b158ec00eab4f48928846660be8c8d7d40ffda1.zip |
lv2bench: Fix potential memory leaks
-rw-r--r-- | utils/lv2bench.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/lv2bench.c b/utils/lv2bench.c index dc0fa0b..39ee6a7 100644 --- a/utils/lv2bench.c +++ b/utils/lv2bench.c @@ -105,6 +105,7 @@ bench(const LilvPlugin* p, uint32_t sample_count, uint32_t block_size) if (!lilv_node_equals(feature, urid_map)) { fprintf(stderr, "<%s> requires feature <%s>, skipping\n", uri, lilv_node_as_uri(feature)); + free(seq_out); free(buf); uri_table_destroy(&uri_table); return 0.0; @@ -115,6 +116,7 @@ bench(const LilvPlugin* p, uint32_t sample_count, uint32_t block_size) if (!instance) { fprintf(stderr, "Failed to instantiate <%s>\n", lilv_node_as_uri(lilv_plugin_get_uri(p))); + free(seq_out); free(buf); uri_table_destroy(&uri_table); return 0.0; |