mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-19 05:33:43 -04:00
control: remap - fix memory leak in remap_load_list()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
22225a4ec6
commit
1823b4cd4b
1 changed files with 1 additions and 2 deletions
|
|
@ -564,8 +564,7 @@ static int remap_load_list(snd_ctl_remap_t *remap)
|
|||
if (err < 0)
|
||||
break;
|
||||
} while (list.count != list.used);
|
||||
if (err < 0)
|
||||
free(list.pids);
|
||||
snd_ctl_elem_list_free_space(&list);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue