mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-21 01:40:09 -05: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;
|
goto __err2;
|
||||||
}
|
}
|
||||||
err = snd_input_close(in);
|
err = snd_input_close(in);
|
||||||
if (err < 0)
|
if (err < 0) {
|
||||||
|
in = NULL;
|
||||||
goto __err2;
|
goto __err2;
|
||||||
|
}
|
||||||
*cfg = top;
|
*cfg = top;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
__err2:
|
__err2:
|
||||||
snd_config_delete(top);
|
snd_config_delete(top);
|
||||||
__err1:
|
__err1:
|
||||||
snd_input_close(in);
|
if (in)
|
||||||
|
snd_input_close(in);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue