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

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

 



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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux