diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-07-04 04:15:59 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-07-04 04:15:59 +0000 |
commit | 612f20c37ac59506501c890e7f9285f551c793d2 (patch) | |
tree | 0a5b7c0359483a9ec5cf29ce04f10c0614f5ab88 /perl.c | |
parent | cf36064f875775fbd01f4387ab083483e8fa24f8 (diff) | |
download | perl-612f20c37ac59506501c890e7f9285f551c793d2.tar.gz |
fix large memory leak that has been around for ever, masked by
-DPURIFY (most of the arenas were never freed!)
p4raw-id: //depot/perl@6298
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -706,9 +706,6 @@ perl_destruct(pTHXx) if (PL_sv_count != 0 && ckWARN_d(WARN_INTERNAL)) Perl_warner(aTHX_ WARN_INTERNAL,"Scalars leaked: %ld\n", (long)PL_sv_count); - sv_free_arenas(); - - /* No SVs have survived, need to clean out */ Safefree(PL_origfilename); Safefree(PL_reg_start_tmp); if (PL_reg_curpm) @@ -739,6 +736,8 @@ perl_destruct(pTHXx) PL_thrsv = Nullsv; #endif /* USE_THREADS */ + sv_free_arenas(); + /* As the absolutely last thing, free the non-arena SV for mess() */ if (PL_mess_sv) { |