From 76c6aab7d10a62ae3b8392ba965cd7a7f82195f1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 16 May 2020 01:36:04 +0200 Subject: [PATCH] Fix a memory leak (unsupported LV2 plugin) --- libs/ardour/lv2_plugin.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 2034782067..f841e6e8c1 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -3578,12 +3578,12 @@ LV2PluginInfo::discover() } } + lilv_nodes_free (required_features); + if (err) { continue; } - lilv_nodes_free (required_features); - LilvNodes* required_options = lilv_world_find_nodes (world.world, lilv_plugin_get_uri (p), world.opts_requiredOptions, NULL); if (required_options) { LILV_FOREACH(nodes, i, required_options) {