diff options
author | David Mitchell <davem@iabyn.com> | 2015-10-21 19:10:34 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2016-02-03 09:18:32 +0000 |
commit | 86cc158350c1bc1d2159ec3dbf01e2800bca07dc (patch) | |
tree | 4fe7484be7b99f9c50aada3ef0aa972d036e233b /AUTHORS | |
parent | b28bb06c3ca3128edebf1b46812096d79b69de97 (diff) | |
download | perl-86cc158350c1bc1d2159ec3dbf01e2800bca07dc.tar.gz |
extend magic copy test to all scope exit types
Commit v5.15.6-387-g6f48390 forced leavesub to copy returned items
if they were get-magical. Normally rvalue subs are supposed to return a
copy of their return args, but that copy is sometimes skipped if leavesub
thinks the side-effects will never be visible. Tied elements was an
example where the implementation leaked.
However, this applies equally well to other leave types, such as
do { ....}, so test for get magic in those too.
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions