mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
topology: various coverity fixes
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
6efa23f283
commit
0d97f53c25
3 changed files with 18 additions and 10 deletions
|
|
@ -237,8 +237,9 @@ static int tplg_load_config(const char *file, snd_config_t **cfg)
|
|||
|
||||
ret = snd_input_stdio_attach(&in, fp, 1);
|
||||
if (ret < 0) {
|
||||
fclose(fp);
|
||||
SNDERR("error: could not attach stdio %s", file);
|
||||
goto err;
|
||||
return ret;
|
||||
}
|
||||
ret = snd_config_top(&top);
|
||||
if (ret < 0)
|
||||
|
|
@ -261,7 +262,7 @@ static int tplg_load_config(const char *file, snd_config_t **cfg)
|
|||
err_load:
|
||||
snd_config_delete(top);
|
||||
err:
|
||||
fclose(fp);
|
||||
snd_input_close(in);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue