alsactl: fix the error path in set_controls()

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2022-01-03 16:14:31 +01:00
parent 90f5967178
commit fca9d89bbc

View file

@ -1580,7 +1580,7 @@ static int set_controls(int card, snd_config_t *top, int doit)
} }
_free: _free:
if (count >= 0) if (count > 0)
snd_ctl_elem_list_free_space(list); snd_ctl_elem_list_free_space(list);
_close: _close:
snd_ctl_close(handle); snd_ctl_close(handle);