regexps. Don't attempt to look at the IVX if it's not an IV.
p4raw-id: //depot/perl@24549
while (i) {
SV *resv = ary[--i];
- REGEXP *re = INT2PTR(REGEXP *,SvIVX(resv));
if (SvFLAGS(resv) & SVf_BREAK) {
/* this is PL_reg_curpm, already freed
else if(SvREPADTMP(resv)) {
SvREPADTMP_off(resv);
}
- else {
+ else if(SvIOKp(resv)) {
+ REGEXP *re = INT2PTR(REGEXP *,SvIVX(resv));
ReREFCNT_dec(re);
}
}
AvALLOC(sv) = 0;
AvARYLEN(sv)= 0;
AvREAL_only(sv);
- SvIVX(sv) = 0;
}
/* to here. */
/* XXX? Only SVt_NULL is ever upgraded to AV or HV? */