From e7444e9e45a0ccd6cc7ee3b82fd53b100972e81c Mon Sep 17 00:00:00 2001 From: Johan Adolfsson Date: Thu, 7 Oct 2021 12:12:24 +0200 Subject: [PATCH] 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 --- src/dlmisc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/dlmisc.c b/src/dlmisc.c index 1dd91356..f64c716a 100644 --- a/src/dlmisc.c +++ b/src/dlmisc.c @@ -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;