dlmisc.c: Avoid double unlock in snd_dlobj_cache_get0()

Remove call to snd_dlobj_unlock() in snd_dlobj_cache_get0()
All lock/unlock is done by callers of the function.

Fixes: https://github.com/alsa-project/alsa-lib/issues/181
This commit is contained in:
Johan Adolfsson 2021-10-07 12:12:24 +02:00
parent a1e91720cc
commit e7444e9e45

View file

@ -359,7 +359,6 @@ snd_dlobj_cache_get0(const char *lib, const char *name,
free(c);
__err:
snd_dlclose(dlobj);
snd_dlobj_unlock();
return NULL;
}
c->dlobj = dlobj;