summaryrefslogtreecommitdiff
path: root/av.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2004-09-05 21:36:57 +0000
committerDave Mitchell <davem@fdisolutions.com>2004-09-05 21:36:57 +0000
commitfdb3bdd059fbc95fa3b254744f5311a0d67b4208 (patch)
treed32438943d90b6aa8281e91cb32ba4480cb9a0d1 /av.c
parent446e776fb7618d56ecd9043c4060e08967abe22c (diff)
downloadperl-fdb3bdd059fbc95fa3b254744f5311a0d67b4208.tar.gz
only mortalize deleted array elements for AvREAL
(update to change #23158) p4raw-link: @23158 on //depot/perl: 2c8ddff3c182e26372c9343750c9b3c45e438ca2 p4raw-id: //depot/perl@23271
Diffstat (limited to 'av.c')
-rw-r--r--av.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/av.c b/av.c
index bedd04b41e..b616a209ee 100644
--- a/av.c
+++ b/av.c
@@ -864,7 +864,7 @@ Perl_av_delete(pTHX_ AV *av, I32 key, I32 flags)
SvREFCNT_dec(sv);
sv = Nullsv;
}
- else
+ else if (AvREAL(av))
sv = sv_2mortal(sv);
return sv;
}