Subj : Re: returning arguments To : comp.programming.threads From : Huub Date : Wed Jun 29 2005 03:39 pm Joe Seigh wrote: > 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. > Thank you. I know this is most probably off-topic for this ng, but do you have any idea what the error "multiple definition on...." could indicate? Problem is that if I run a stand-alone program that does the same job it shows no errors and runs fine. (I posted this with code and errors to alt.comp.lang.learn.c-c++, but no response yet.) .