[alsa-devel] Salsa-lib memleak
5 Feb
2008
5 Feb
'08
11:22 a.m.
Hi,
it seems Salsa-lib leak memory in case of errors. For snd_pcm_open, snd_pcm_t is allocated, but not free in case of snd_pcm_hw_mmap_status error.
The same things happen in _snd_pcm_mmap, there error return in middle of the code, without freeing the allocated memory.
Thanks
Matthieu
5 Feb
5 Feb
12:29 p.m.
At Tue, 5 Feb 2008 10:22:30 +0000 (UTC), Matthieu CASTET wrote:
Hi,
it seems Salsa-lib leak memory in case of errors. For snd_pcm_open, snd_pcm_t is allocated, but not free in case of snd_pcm_hw_mmap_status error.
The same things happen in _snd_pcm_mmap, there error return in middle of the code, without freeing the allocated memory.
Thanks. Fixed and released as 0.0.16. The tarball will appear in the export ftp later.
Takashi
6165
Age (days ago)
6165
Last active (days ago)
1 comments
2 participants
participants (2)
-
Matthieu CASTET
-
Takashi Iwai