From: "Kevin Chase" <kevincha99@hotmail.com>
Message-ID: <BAY2-F172Ih5h5xf4rJ
0001a3a6@hotmail.com>
p4raw-id: //depot/perl@22918
}
MUTEX_UNLOCK(&thread->mutex);
MUTEX_DESTROY(&thread->mutex);
+#ifdef WIN32
+ if (thread->handle)
+ CloseHandle(thread->handle);
+ thread->handle = 0;
+#endif
PerlMemShared_free(thread);
if (freeperl)
perl_free(freeperl);
MUTEX_UNLOCK(&thread->mutex);
#ifdef WIN32
waitcode = WaitForSingleObject(thread->handle, INFINITE);
+ CloseHandle(thread->handle);
+ thread->handle = 0;
#else
pthread_join(thread->thr,&retval);
#endif