[alsa-devel] PCM -- no need to release params mem nor close handle?
perex at suse.cz
Fri Mar 23 17:50:12 CET 2007
On Fri, 23 Mar 2007, intellij wrote:
> I am looking at PCM interface manual
> It tells that there are an open and set_params functions but nothing
> about close(). Furthermore, the description of open()
> neither tells that. Ok, I have realized from the examples. However, even
> the examples demonstrate no params deallocation. You call the
> snd_pcm_hw_params_alloca(&hwparams) but never release the allocated
> memory. Why?
Do 'man alloca' and 'man malloc' and compare these two memory allocation
Jaroslav Kysela <perex at suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs
More information about the Alsa-devel