From: blino@mandriva.com Date: Wed, 12 Mar 2008 02:59:45 +0000 (-0700) Subject: [perl #51636] segmentation fault with array ties X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b63c7c552a2e9cf2b2c5eb492358b8567fd16179;p=p5sagit%2Fp5-mst-13.2.git [perl #51636] segmentation fault with array ties From: blino@mandriva.com (via RT) Message-ID: p4raw-id: //depot/perl@33495 --- diff --git a/av.c b/av.c index e6c26bc..67ffad9 100644 --- a/av.c +++ b/av.c @@ -437,7 +437,7 @@ Perl_av_clear(pTHX_ register AV *av) /* 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);