mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:55:43 +01:00
alsatplg: fix another small leak in normalize_config()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
2656d4bec8
commit
10db898d9b
1 changed files with 2 additions and 0 deletions
|
@ -98,6 +98,8 @@ static snd_config_t *normalize_config(const char *id, snd_config_t *src, int sor
|
|||
}
|
||||
s = normalize_config(id2, s, sort);
|
||||
if (s == NULL || snd_config_add(dst, s)) {
|
||||
if (s)
|
||||
snd_config_delete(s);
|
||||
snd_config_delete(dst);
|
||||
free(a);
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue