Bonjour,

J'ai un problème de fuite mémoire, lors de la création de mon thread (ou de son éxécution)... j'utilise un pthread_create (...), et je pense que le problème vient du premier paramètre (de type pthread_t&).

Voici ce que me donne Valgrind :

==9545== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 8 from 5)
==9545== malloc/free: in use at exit: 136 bytes in 1 blocks.
==9545== malloc/free: 34 allocs, 33 frees, 9989 bytes allocated.
==9545== For counts of detected errors, rerun with: -v
==9545== searching for pointers to 1 not-freed blocks.
==9545== checked 8618120 bytes.
==9545==
==9545== 136 bytes in 1 blocks are possibly lost in loss record 1 of 1
==9545== at 0x11B1D1FD: calloc (vg_replace_malloc.c:279)
==9545== by 0x1190D379: allocate_dtv (dl-tls.c:306)
==9545== by 0x1190D64D: _dl_allocate_tls (dl-tls.c:459)
==9545== by 0x11C366A4: pthread_create@@GLIBC_2.2.5 (allocatestack.c:502)
==9545== by 0x406A55: LoginServer::start() (in /home/helldream/LoginServer/LoginServer)
==9545== by 0x40707B: main (in /home/helldream/LoginServer/LoginServer)
==9545==
==9545== LEAK SUMMARY:
==9545== definitely lost: 0 bytes in 0 blocks.
==9545== possibly lost: 136 bytes in 1 blocks.
==9545== still reachable: 0 bytes in 0 blocks.
==9545== suppressed: 0 bytes in 0 blocks.
J'ai lu un article parlant de désalouer un handle, un fois le thread terminé, mais je ne sais pas comment... :S

Quelqu'un aurait-il une idée? (à noter que procédure appelée par le thread est totalement vide)