summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-12-02 13:04:41 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-12-02 13:25:19 -0800
commit6fc2092288e8c25cd8ecb2c6139053f89a23e49a (patch)
treeeb9b3eb811f5d6357b2cb716db6b429a293cf937 /pp_ctl.c
parent4b476daa33ccf495c0ac155bb4ee5f77e349cb95 (diff)
downloadperl-6fc2092288e8c25cd8ecb2c6139053f89a23e49a.tar.gz
$tied =~ s///e when FETCH returns a COW
This used to cause an assertion failure, or sometimes ‘Attempt to free nonexistent shared string’. All that was required to fix it was the deletion of two cpp lines.
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 2d93cc14cd..8e91ebd5df 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -328,11 +328,9 @@ PP(pp_substcont)
targ = dstr;
}
else {
-#ifdef PERL_OLD_COPY_ON_WRITE
if (SvIsCOW(targ)) {
sv_force_normal_flags(targ, SV_COW_DROP_PV);
} else
-#endif
{
SvPV_free(targ);
}