mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
mixer: fixed double free
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
9ab3c4a669
commit
020bb3018a
1 changed files with 1 additions and 3 deletions
|
|
@ -204,10 +204,8 @@ int snd_mixer_attach(snd_mixer_t *mixer, const char *name)
|
|||
if (err < 0)
|
||||
return err;
|
||||
err = snd_mixer_attach_hctl(mixer, hctl);
|
||||
if (err < 0) {
|
||||
snd_hctl_close(hctl);
|
||||
if (err < 0)
|
||||
return err;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue