Subj : Re: returning arguments To : comp.programming.threads From : Joe Seigh Date : Wed Jun 29 2005 09:29 am Huub wrote: >> > Thank you. Since my source on threads is offline: do I have to use > free(..) after pthread_join(..,..);? You have to use free() for any malloc'd memory after you're finished with it if you want to avoid memory leaks. Or you could use a buffer pool to recycle the buffers. Or you could pass a statically preallocated buffer to the thread as its parameter and use that to return information. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .