filter-chain: free plugin when load fails

This commit is contained in:
Wim Taymans 2021-11-17 12:45:26 +01:00
parent 6d492db948
commit 1b88e0023b

View file

@ -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;
}