I'd say it's most likely your code. I would be very surprised if libc is leaking memory. There are thousands of eyes looking at that code, and many millions using it in many ways. Pd code could have leaks, but mostly it is good.
Try posting your code. .c On Apr 15, 2008, at 10:18 AM, tim redfern wrote: > Hi I don't know if this the right place to post a question/plea for > help > but, > > I'm trying to write an external, that uses a pthread to do some speech > synthesis without interrupting pd audio. > > I'm getting a very strange problem.. its leaking memory when invoked > within the thread. > > After further investigation, I find that even a simple malloc/free is > leaking all the memory it's allocating, even when called in the > main pd > thread, if there is another thread being created- its as if the act of > making a new thread completely confuses malloc. > > Any thoughts, would this be something to do with pd or with the c > library (glibc/ubuntu)? > > Thanks > > Tim > > > _______________________________________________ > PD-dev mailing list > [email protected] > http://lists.puredata.info/listinfo/pd-dev ------------------------------------------------------------------------ ---- ¡El pueblo unido jamás será vencido! _______________________________________________ PD-dev mailing list [email protected] http://lists.puredata.info/listinfo/pd-dev
