From 42eeb5eca03accb9711698e3991551a22e762543 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. 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 Signed-off-by: Jaroslav Kysela --- 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; -- 2.47.1