mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
ucm: another coverity fix in uc_mgr_config_load()
This commit is contained in:
parent
ac6df1106c
commit
5905af1996
1 changed files with 6 additions and 3 deletions
|
|
@ -85,15 +85,18 @@ int uc_mgr_config_load(const char *file, snd_config_t **cfg)
|
|||
goto __err2;
|
||||
}
|
||||
err = snd_input_close(in);
|
||||
if (err < 0)
|
||||
if (err < 0) {
|
||||
in = NULL;
|
||||
goto __err2;
|
||||
}
|
||||
*cfg = top;
|
||||
return 0;
|
||||
|
||||
__err2:
|
||||
snd_config_delete(top);
|
||||
snd_config_delete(top);
|
||||
__err1:
|
||||
snd_input_close(in);
|
||||
if (in)
|
||||
snd_input_close(in);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue