summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c
index a7c409fb9c..d53741c9ef 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -4902,10 +4902,11 @@ Perl_win32_init(int *argcp, char ***argvp)
void
Perl_win32_term(void)
{
- dTHX;
HINTS_REFCNT_TERM;
OP_REFCNT_TERM;
- PERLIO_TERM;
+ /* Can't call PERLIO_TERM here because that calls PerlMemShared_free()
+ * but we're too late for that (at least when using PERL_IMPLICIT_SYS)
+ * since we've already done perl_free(). */
MALLOC_TERM;
}