Memory leak in pthread

helo frnds,

I am using RHEL5 and C lang for development.

I am getting some memory leak problem in pthread.

I hav developed a program which creates two threads for listening purpose on two diff ports. both the child threads are doing same job but on diff port no.

I am using pthread_create(), pthread_join() and pthread_kill() thread routines in my program. and wen I checked my program using valgrind tool it gives me some memory leak.

The memory leak occures in libpthread.

so is there any routine to cleanup the thread memory [eg. like pthread_destory()]

following are some lines of out put of valgrind

Look RedHat upgrade site if there is glibc upgrade available

hi mindteaser,

        Is that memory leak problem in pthread overcomed in any of the new library releases??

What makes you think you are getting an actual memory leak? All valgrind is saying is that you MAY have a possible memory leak.

hi murphy,

thanks for ur reply.
Actually my question was about "Still reachable bytes". please see my thread named "Memory leak while using pthread_cancel() ", posted 5 days ago. there you can see my sample code and valgrind output.

thank you.