Do not unlock mutex after it has been destroyed and freed.
Do not email p5p without uncrossing eyes.
p4raw-id: //depot/perl@16056
MUTEX_UNLOCK(&thread->mutex);
Perl_ithread_destruct(aTHX_ thread, "no reference");
}
- MUTEX_UNLOCK(&thread->mutex);
+ else {
+ MUTEX_UNLOCK(&thread->mutex);
+ }
}
else {
MUTEX_UNLOCK(&thread->mutex);