In the function TRI_StartThread, if pthread_create() failed, the name of the thread was not freed.
In the function TRI_StartThread, if CreateThread() failed, the name of the thread was not freed.
In the function ThreadStarter the name of the thread was not freed.