ucm: fix few memory-leaks in the error paths

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2022-07-08 21:56:57 +02:00
parent 378c6a9215
commit fc86eafa08
2 changed files with 6 additions and 6 deletions

View file

@ -1481,8 +1481,8 @@ const char *parse_open_variables(snd_use_case_mgr_t *uc_mgr, const char *name)
goto skip;
}
snd_config_delete(cfg);
skip:
snd_config_delete(cfg);
return end + 3;
}