mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
src/conf.c: add missing va_end() call (coverity)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
47bc6d5341
commit
4aa960c48b
1 changed files with 6 additions and 2 deletions
|
|
@ -3034,8 +3034,10 @@ int snd_config_save(snd_config_t *config, snd_output_t *out)
|
|||
if (!k) \
|
||||
break; \
|
||||
err = fcn(config, k, &n); \
|
||||
if (err < 0) \
|
||||
if (err < 0) { \
|
||||
va_end(arg); \
|
||||
return err; \
|
||||
} \
|
||||
config = n; \
|
||||
} \
|
||||
va_end(arg); \
|
||||
|
|
@ -3056,8 +3058,10 @@ int snd_config_save(snd_config_t *config, snd_output_t *out)
|
|||
if (!k) \
|
||||
break; \
|
||||
err = fcn(root, config, k, &n); \
|
||||
if (err < 0) \
|
||||
if (err < 0) { \
|
||||
va_end(arg); \
|
||||
return err; \
|
||||
} \
|
||||
config = n; \
|
||||
} \
|
||||
va_end(arg); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue