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.

Buglink: https://github.com/alsa-project/alsa-lib/issues/181
Fixes: https://github.com/alsa-project/alsa-lib/pull/182
Signed-off-by: Johan Adolfsson <johana@axis.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Johan Adolfsson 2021-10-07 12:12:24 +02:00 committed by Jaroslav Kysela
parent a1e91720cc
commit 42eeb5eca0

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;