Re: [PATCH - pulse 1/1] pulse: prevent double-free when pulse_hw_constraint returns error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 13 Jul 2017 21:33:05 +0200,
? ? wrote:
> 
> From: Kui Wang <wangkuisuper@xxxxxxxxxxx>
> 
> 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@xxxxxxxxxxx>

Applied, thanks.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux