Skip to contentSkip to conversation

Double snd_dlobj_unlock()

PATCH GitHub issues - opened 1 participant 1 message Oct 7, 2021 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

alsa-project/alsa-lib issue #181 was opened from johado:

In dlmisc.c:snd_dlobj_cache_get0() there is a call to snd_dlobj_unlock() in the __err: path which should not be there. All lock/unlock are done by the callers to this function.

src/dlmisc.c +0 -1
@@ -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;

Issue URL : https://github.com/alsa-project/alsa-lib/issues/181
Repository URL: https://github.com/alsa-project/alsa-lib