OSDN Git Service
(root)
/
android-x86
/
external-alsa-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac6df11
)
ucm: another coverity fix in uc_mgr_config_load()
author
Jaroslav Kysela
<perex@perex.cz>
Mon, 27 May 2019 18:10:52 +0000
(20:10 +0200)
committer
Jaroslav Kysela
<perex@perex.cz>
Mon, 27 May 2019 18:10:52 +0000
(20:10 +0200)
src/ucm/utils.c
patch
|
blob
|
history
diff --git
a/src/ucm/utils.c
b/src/ucm/utils.c
index
efd5a97
..
5607304
100644
(file)
--- a/
src/ucm/utils.c
+++ b/
src/ucm/utils.c
@@
-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;
}