mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
Misc fixes
Fixes of spots found via valgrind - non-freed chunks after snd_config_get_ascii() - zero-fill records (to make valgrind happy) - compile warning fixes
This commit is contained in:
parent
4bb0721a83
commit
ea77e08cc6
6 changed files with 20 additions and 5 deletions
|
|
@ -1962,8 +1962,7 @@ static int snd_pcm_open_conf(snd_pcm_t **pcmp, const char *name,
|
|||
val = NULL;
|
||||
snd_config_get_ascii(pcm_conf, &val);
|
||||
SNDERR("Invalid type for PCM %s%sdefinition (id: %s, value: %s)", name ? name : "", name ? " " : "", id, val);
|
||||
if (val)
|
||||
free(val);
|
||||
free(val);
|
||||
return -EINVAL;
|
||||
}
|
||||
err = snd_config_search(pcm_conf, "type", &conf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue