diff --git a/src/modules/module-filter-chain/ladspa_plugin.c b/src/modules/module-filter-chain/ladspa_plugin.c index 5ad6262f1..7e2cde416 100644 --- a/src/modules/module-filter-chain/ladspa_plugin.c +++ b/src/modules/module-filter-chain/ladspa_plugin.c @@ -221,6 +221,7 @@ static struct fc_plugin *ladspa_handle_load_by_path(const char *path) exit: if (p->handle) dlclose(p->handle); + free(p); errno = -res; return NULL; }