mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:55:43 +01:00
alsactl: add missing state_unlock() call
This commit is contained in:
parent
088593c039
commit
55d41b7fe3
1 changed files with 2 additions and 0 deletions
|
@ -1678,6 +1678,8 @@ int load_state(const char *file, const char *initfile, const char *cardname,
|
|||
int card, first = 1;
|
||||
char cardname1[16];
|
||||
|
||||
if (lock_fd >= 0)
|
||||
state_unlock(lock_fd, file);
|
||||
error("Cannot open %s for reading: %s", file, snd_strerror(err));
|
||||
finalerr = err;
|
||||
if (cardname) {
|
||||
|
|
Loading…
Reference in a new issue