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:
cf3846d
)
ucm: fix error path in execute_cfgsave()
author
Jaroslav Kysela
<perex@perex.cz>
Wed, 2 Jun 2021 17:51:13 +0000
(19:51 +0200)
committer
Jaroslav Kysela
<perex@perex.cz>
Wed, 2 Jun 2021 17:51:13 +0000
(19:51 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/main.c
patch
|
blob
|
history
diff --git
a/src/ucm/main.c
b/src/ucm/main.c
index
c9b37b6
..
42fdaa1
100644
(file)
--- a/
src/ucm/main.c
+++ b/
src/ucm/main.c
@@
-605,8
+605,10
@@
static int execute_cfgsave(snd_use_case_mgr_t *uc_mgr, const char *filename)
uc_error("unable to open file '%s': %s", file, snd_strerror(err));
goto _err;
}
- if (!config || snd_config_is_empty(config))
+ if (!config || snd_config_is_empty(config)) {
+ snd_output_close(out);
goto _err;
+ }
if (with_root) {
snd_output_printf(out, "%s ", root);
err = _snd_config_save_node_value(config, out, 0);