pthread_create is called multiple times while the previous thread with same routine is running
<p>Is there any memory leaked or any other problem in second <code>pthread_create</code> call (e.g: memory allocated for pthread) if I accidentally call to <code>pthread_create</code> twice while the previous thread with same routine is running? </p>

<pre><code>static void* thread_routine(void *data)
{
   while (1) {sleep(1)}
   return NULL;
}

int main()
{
    static pthread_t thread_id;
    pthread_create(&amp;thread_id, NULL, thread_routine, NULL);
    pthread_create(&amp;thread_id, NULL, thread_routine, NULL);

    while (1) {//&gt; never return &lt;//}
    return 1;
}
</code></pre>

<p>Thanks for your helps/answers.</p>