mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
ucm: fix the error path in parse_toplevel_path()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
b66d69b72b
commit
e1777ee1a1
1 changed files with 3 additions and 4 deletions
|
|
@ -2048,13 +2048,11 @@ static int parse_toplevel_path(snd_use_case_mgr_t *uc_mgr,
|
|||
|
||||
if (dir == NULL) {
|
||||
uc_error("Directory is not defined in %s!", filename);
|
||||
free(file);
|
||||
continue;
|
||||
goto __next;
|
||||
}
|
||||
if (file == NULL) {
|
||||
uc_error("File is not defined in %s!", filename);
|
||||
free(dir);
|
||||
continue;
|
||||
goto __next;
|
||||
}
|
||||
|
||||
ucm_filename(fn, sizeof(fn), version, dir, file);
|
||||
|
|
@ -2072,6 +2070,7 @@ static int parse_toplevel_path(snd_use_case_mgr_t *uc_mgr,
|
|||
goto __ok;
|
||||
}
|
||||
|
||||
__next:
|
||||
free(file);
|
||||
free(dir);
|
||||
dir = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue