]> git.alsa-project.org Git - alsa-lib.git/commitdiff
dlmisc.c: Avoid double unlock in snd_dlobj_cache_get0()
authorJohan Adolfsson <johana@axis.com>
Thu, 7 Oct 2021 10:12:24 +0000 (12:12 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 7 Oct 2021 14:52:56 +0000 (16:52 +0200)
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>
src/dlmisc.c

index 1dd9135641c1013adae5255dd21dcb50e0cf8412..f64c716af73da7193179f21455d1e6c7e59ddcaa 100644 (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;