mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
(trunk libT) #3567 "Minor memory leak in pthread_create()" -- fixed
This commit is contained in:
@@ -134,8 +134,9 @@ tr_threadNew( void ( *func )(void *),
|
||||
t->thread = (DWORD) id;
|
||||
}
|
||||
#else
|
||||
pthread_create( &t->thread, NULL, ( void * ( * )(
|
||||
void * ) )ThreadFunc, t );
|
||||
pthread_create( &t->thread, NULL, (void*(*)(void*))ThreadFunc, t );
|
||||
pthread_detach( t->thread );
|
||||
|
||||
#endif
|
||||
|
||||
return t;
|
||||
|
||||
Reference in New Issue
Block a user