On Mon, 25 Aug 2003, [iso-8859-1] Mĺns Rullgĺrd wrote: > > Is there a memory leak in alsa-lib? When playing music with a player > I'm writing (TCVP, http://tcvp.sf.net), the memory usage reported by > top grows for each file I play, but only if I use ALSA for sound > playback. If I use OSS the memory usage varies around 1.5 MB, but if > I use ALSA, it starts at 1.9 MB (OK, libasound takes some space) and > grows by 30-40 kB for each played file. Running the whole thing under > valgrind gives me this, which is all alsa-related. When using OSS, > valgrind reports no leaks.
I tested aplay with valgrind and I cannot find any leak (except a few allocations probably from glibc). Note that you have to use snd_config_update_free_global() after end of the session to free the configuration cache in alsa-lib. This is described in the alsa-lib/MEMORY-LEAK file. Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project, SuSE Labs ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel