[Tremor] memory leak

Park Jin Soo jinsp at mcubeworks.com
Mon Jul 11 18:01:18 PDT 2005


I found it a few days ago and it works well.

Thanks,

Jin Soo


----- Original Message ----- 
From: "Frederic Bastien" <nouiz at nouiz.org>
To: "Park Jin Soo" <jinsp at mcubeworks.com>
Cc: <tremor at xiph.org>
Sent: Tuesday, July 12, 2005 4:51 AM
Subject: Re: [Tremor] memory leak


> Hi,
> 
> I'm not an expert, but there have been a patch that I have send to the
> list that removed some memory leaks. I don't know if it was included in
> the main source code. You can look in the archive of the mailing list for
> the patch.
> 
> Frédéric Bastien
> 
> > Dear experts,
> >
> > I have questions on tremor:
> >
> > 1. memory leak
> > I found that memory leaks occur in framing.c as follows:
> >
> >   80*2 bytes by _ogg_calloc() in ogg_stream_create(), ln. 826
> >   16*7 bytes by _ogg_malloc() in _fetch_buffer(), ln. 98
> > 1024*7 bytes by _ogg_malloc() in _fetch_buffer(), ln. 99
> >   16*10 bytes by _ogg_malloc() in _fetch_ref(), ln. 108
> >
> > Is this a bug in vorbisfile.c?
> > Is there any report or solution on this matter?
> >
> > 2. static allocation of memory
> > It seems that tremor allocates most of memories dynamically
> > by malloc and calloc.
> > Then is it impossible to use static memory?
> > Is there any example for static allocation?
> >
> > Could you let me know the answers?
> >
> > Thanks in advance and best regards,
> > Jin Soo
> >
> > _______________________________________________
> > Tremor mailing list
> > Tremor at xiph.org
> > http://lists.xiph.org/mailman/listinfo/tremor
> >


More information about the Tremor mailing list