[MPlayer-dev-eng] [PATCH] two memleaks
D Richard Felker III
dalias at aerifal.cx
Fri Oct 1 17:51:08 CEST 2004
On Fri, Oct 01, 2004 at 02:02:58PM +0200, Adam Tla/lka wrote:
> On Fri, Oct 01, 2004 at 02:10:32PM +0300, Jan Knutar wrote:
> > On Thursday 30 September 2004 19:08, Reimar Döffinger wrote:
> > > Hi,
> > > this patch fixes two memleaks that amounted to about 2.3 KB per file
> > > played. But on my system alsalib leaks tons of memory and there seems to
> > > be nothing MPlayer can do about it :-(
> >
> > On my system, alsa-lib uses mlock() on its memory too... yay alsa-lib... Sigh.
> This has nothing to do with memory leaks.
> mlock() just prevents memory swapping, but only in case of root apps.
> Probably alsa-lib does not free() allocated memory in some places. ;-(
iirc some new versions of linux (and maybe other systems) allow
non-root users to mlock a small amount of memory. so this could
actually be a problem. the purpose of this? 'securing' crypto by
keeping your keys from getting swapped to disk.
rich
More information about the MPlayer-dev-eng
mailing list