Message-ID: <
20020503211210.B22026@fdgroup.com>
p4raw-id: //depot/perl@16383
PL_localizing = 1;
SvSETMAGIC(sv);
PL_localizing = 0;
+ /* If we're localizing a tied array/hash element, this new sv
+ * won't actually be stored in the array/hash - so it won't get
+ * reaped when the localize ends. Ensure it gets reaped by
+ * mortifying it instead. DAPM */
+ if (SvTIED_mg(sv, PERL_MAGIC_tiedelem))
+ sv_2mortal(sv);
}
return sv;
}