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) {