From: blino@mandriva.com (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.6.HEAD-25460-
1205315984-377.51636-75-0@perl.org>
p4raw-id: //depot/perl@33495
/* Give any tie a chance to cleanup first */
if (SvRMAGICAL(av)) {
const MAGIC* const mg = SvMAGIC(av);
- if (PL_delaymagic && mg->mg_type == PERL_MAGIC_isa)
+ if (PL_delaymagic && mg && mg->mg_type == PERL_MAGIC_isa)
PL_delaymagic |= DM_ARRAY;
else
mg_clear((SV*)av);