alsactl: add missing state_unlock() call

This commit is contained in:
Jaroslav Kysela 2014-12-24 20:15:26 +01:00
parent 088593c039
commit 55d41b7fe3

View file

@ -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) {