diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-09-12 08:52:50 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-09-12 08:52:50 +0000 |
commit | 5782d502273e5b6d06607ebe625248c4c102d93b (patch) | |
tree | 145c2e7e1d1116b4b8a59a2b2e0a45bad6f7250c /mro.c | |
parent | a49ba3fcbe357fbacf7b9898df08daa2cbdfc8c4 (diff) | |
download | perl-5782d502273e5b6d06607ebe625248c4c102d93b.tar.gz |
Need to free the isa lookup hash before rebuilding it.
p4raw-id: //depot/perl@34355
Diffstat (limited to 'mro.c')
-rw-r--r-- | mro.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -546,6 +546,10 @@ Perl_mro_isa_changed_in(pTHX_ HV* stash) SvREFCNT_dec((SV*)meta->mro_linear_c3); meta->mro_linear_dfs = NULL; meta->mro_linear_c3 = NULL; + if (meta->isa) { + SvREFCNT_dec(meta->isa); + meta->isa = NULL; + } /* Inc the package generation, since our @ISA changed */ meta->pkg_gen++; |