[alsa-devel] [PATCH - pulse 1/1] pulse: prevent double-free when pulse_hw_constraint returns error
Takashi Iwai
tiwai at suse.de
Sat Jul 15 09:49:12 CEST 2017
On Thu, 13 Jul 2017 21:33:05 +0200,
? ? wrote:
>
> From: Kui Wang <wangkuisuper at hotmail.com>
>
> When pulse_hw_constraint returns error, snd_pcm_ioplug_delete() is called.
> It will then call pulse_close() where "snd_pcm_pulse_t *pcm" will be free.
> Then if goto the "error" label, the "snd_pcm_pulse_t *pcm" will be double-free.
>
> To prevent this, just jump over the code which might cause double-free.
>
> Signed-off-by: Kui Wang <wangkuisuper at hotmail.com>
Applied, thanks.
Takashi
More information about the Alsa-devel
mailing list