summaryrefslogtreecommitdiff
path: root/perlapi.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 /perlapi.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 'perlapi.c')
-rw-r--r--perlapi.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/perlapi.c b/perlapi.c
index 10a7a37c40..6a2b5b0a8a 100644
--- a/perlapi.c
+++ b/perlapi.c
@@ -3914,12 +3914,26 @@ Perl_sv_dup(pTHXo_ SV* sstr)
}
#if defined(HAVE_INTERP_INTERN)
+#undef Perl_sys_intern_clear
+void
+Perl_sys_intern_clear(pTHXo)
+{
+ ((CPerlObj*)pPerl)->Perl_sys_intern_clear();
+}
+
#undef Perl_sys_intern_dup
void
Perl_sys_intern_dup(pTHXo_ struct interp_intern* src, struct interp_intern* dst)
{
((CPerlObj*)pPerl)->Perl_sys_intern_dup(src, dst);
}
+
+#undef Perl_sys_intern_init
+void
+Perl_sys_intern_init(pTHXo)
+{
+ ((CPerlObj*)pPerl)->Perl_sys_intern_init();
+}
#endif
#undef Perl_ptr_table_new
@@ -3950,15 +3964,6 @@ Perl_ptr_table_split(pTHXo_ PTR_TBL_t *tbl)
((CPerlObj*)pPerl)->Perl_ptr_table_split(tbl);
}
#endif
-#if defined(HAVE_INTERP_INTERN)
-
-#undef Perl_sys_intern_init
-void
-Perl_sys_intern_init(pTHXo)
-{
- ((CPerlObj*)pPerl)->Perl_sys_intern_init();
-}
-#endif
#if defined(PERL_OBJECT)
#else
#endif