perl_destruct. This should fix ext/threads/t/end.t under Win32.
p4raw-id: //depot/perl@15989
LEAVE;
FREETMPS;
+ /* Need to flush since END blocks can produce output */
+ PerlIO_flush((PerlIO*)NULL);
+
if (CALL_FPTR(PL_threadhook)(aTHX)) {
/* Threads hook has vetoed further cleanup */
return STATUS_NATIVE_EXPORT;;