diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-07-04 04:37:00 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-07-04 04:37:00 +0000 |
commit | 6c644e7885bc20d759d8cbcb4abaa8f14113c03b (patch) | |
tree | b06fea5a3d3af10fdc606d828bd9917dfbb7831e /perlapi.c | |
parent | 612f20c37ac59506501c890e7f9285f551c793d2 (diff) | |
download | perl-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.c | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -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 |