mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
ucm: fix memory leak in execute_cset()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
d9658b7509
commit
f821f09727
1 changed files with 1 additions and 1 deletions
|
|
@ -495,7 +495,7 @@ static int execute_cset(snd_ctl_t *ctl, const char *cset, unsigned int type)
|
|||
free(value);
|
||||
if (info2) {
|
||||
if (info2->type == SND_CTL_ELEM_TYPE_ENUMERATED)
|
||||
free((void *)info->value.enumerated.names_ptr);
|
||||
free((void *)info2->value.enumerated.names_ptr);
|
||||
free(info2);
|
||||
}
|
||||
free(info);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue