[pulseaudio-discuss] [PATCH 1/3] alsa-util: Add a function to read ELD info

Tanu Kaskinen tanuk at iki.fi
Sat Feb 16 10:46:20 PST 2013


On Sat, 2013-02-16 at 16:12 +0100, Thomas Martitz wrote:
> Am 15.02.2013 23:08, schrieb Tanu Kaskinen:
> > On Fri, 2013-02-15 at 13:42 +0100, David Henningsson wrote:
> >> +    snd_ctl_elem_id_alloca(&id);
> > This allocates memory, right? It's never freed.
> >
> 
> alloca()-related functions allocate on the stack which is automatically 
> freed when the function returns. The memory needn't be freed manually.

Thanks for educating :)

-- 
Tanu



More information about the pulseaudio-discuss mailing list