summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-07-04 04:37:00 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-07-04 04:37:00 +0000
commit6c644e7885bc20d759d8cbcb4abaa8f14113c03b (patch)
treeb06fea5a3d3af10fdc606d828bd9917dfbb7831e /perl.c
parent612f20c37ac59506501c890e7f9285f551c793d2 (diff)
downloadperl-6c644e7885bc20d759d8cbcb4abaa8f14113c03b.tar.gz
fix memory leak on Windows (PL_sys_intern contents were never
freed) p4raw-id: //depot/perl@6299
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 33ca54061b..9736d3b9fc 100644
--- a/perl.c
+++ b/perl.c
@@ -657,6 +657,10 @@ perl_destruct(pTHXx)
SvREFCNT_dec(PL_fdpid); /* needed in io_close() */
PL_fdpid = Nullav;
+#ifdef HAVE_INTERP_INTERN
+ sys_intern_clear();
+#endif
+
/* Destruct the global string table. */
{
/* Yell and reset the HeVAL() slots that are still holding refcounts,