mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
conf: fix snd_config_merge() - double free in overwrite mode
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
414e4a759b
commit
1a52373fbc
1 changed files with 1 additions and 0 deletions
|
|
@ -2194,6 +2194,7 @@ int snd_config_merge(snd_config_t *dst, snd_config_t *src, int override)
|
|||
snd_config_t *dn = snd_config_iterator_entry(di);
|
||||
if (strcmp(sn->id, dn->id) == 0) {
|
||||
if (override) {
|
||||
snd_config_remove(sn);
|
||||
err = snd_config_substitute(dn, sn);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue