projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
446e776
)
only mortalize deleted array elements for AvREAL
Dave Mitchell [Sun, 5 Sep 2004 21:36:57 +0000 (21:36 +0000)]
(update to change #23158)
p4raw-link: @23158 on //depot/perl:
2c8ddff3c182e26372c9343750c9b3c45e438ca2
p4raw-id: //depot/perl@23271
av.c
patch
|
blob
|
blame
|
history
diff --git
a/av.c
b/av.c
index
bedd04b
..
b616a20
100644
(file)
--- 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;
}