diff mbox series

Double snd_dlobj_unlock()

Message ID 20211007100517.740B6F804BB@alsa1.perex.cz (mailing list archive)
State New, archived
Headers show
Series Double snd_dlobj_unlock() | expand

Commit Message

GitHub pull_request - opened Oct. 7, 2021, 10:05 a.m. UTC
alsa-project/alsa-lib issue #181 was edited 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.

```
```

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

Patch

--- 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;