Subj : memory leak in pthread_create To : comp.programming.threads From : Threads Date : Mon Jun 06 2005 12:40 am Hi, I am experiencing memory leak in pthread_create. Here is the code snippent where valgrind has reported memory leak ............ ............ pthread_t id; pthread_create( &(thread->m_threadID), NULL, &PSThread::threadFunction, (void *)thread); id = thread->m_threadID; ............ valgrind report displays 8160 bytes in 1 blocks are definitely lost in loss record 267 of 298 at 0x1B9005F7: malloc (vg_replace_malloc.c:130) by 0x1BC81CA4: __pthread_initialize_manager (in /lib/libpthread-0.9.so) by 0x1BC82B64: pthread_create@@GLIBC_2.1 (in /lib/libpthread-0.9.so) by 0x8147AF6: PSThreadCreator::internalFireThread(PSSocket*, PSThread*) (PSThreadCreator.cpp:93) by 0x80A5858: PSESQLThreadCreator::PSESQLThreadCreator(PSConnectionManager&, PSESqlEngineManager&, PSEDirManager&, PSESchema&, PSEConfigFile&) (PSESQLThreadCreator.cpp:204) by 0x8091123: main (UnixMain.cpp:417) It would be great if you provide any poitner to resolve this memory leak issue. Thanks in advance Regards Sanket S. .