[alsa-devel] memory leak in mix/pcm_upmix.c mix/pcm_downmix.c!!!
Takashi Iwai
tiwai at suse.de
Wed Aug 30 10:17:50 CEST 2017
On Wed, 30 Aug 2017 09:59:59 +0200,
boozer asm wrote:
>
> Hi Takashi,
>
> i think mix is same as ext->data instead ext. ext is of extplug_priv_t *;
> so it is definitely not mix which is of snd_pcm_upmix_t
>
> 33 struct snd_pcm_upmix {
> 34 snd_pcm_extplug_t ext;
>
> typedef struct snd_pcm_extplug_priv {
> snd_pcm_plugin_t plug;
> snd_pcm_extplug_t *data;
> between upmix and extplug_priv, there is a gap plug, which forbid ext to be
> converted to mix directly.
> so free(ext) in snd_pcm_extplug_close does NOT promise it will free mix too.
OK, then care to submit patches?
thanks,
Takashi
More information about the Alsa-devel
mailing list