diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-04-13 09:32:05 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-04-13 09:32:05 +0000 |
commit | 91a15d0d1374fd788fdb885af2d209d2668c1f95 (patch) | |
tree | c8cb04bfa5c9e4099b1b2fac4dfbb130d7a12d30 /op.c | |
parent | c94ff782bf8f2768667759d5390029647ea98673 (diff) | |
download | perl-91a15d0d1374fd788fdb885af2d209d2668c1f95.tar.gz |
Continue hunting for the cause of the Tru64 failed threaded smokes
most probably introduced by the change #19157. The tweak suggested
by Stephen McCamant trades a possible dangling pointer (CopFILE()
is tricky like that with threads) to a memory leak. (This means
that this tweak shouldn't be left in as-is, but if this helps,
we at least know that the failure was caused by the #19157.)
p4raw-link: @19157 on //depot/perl: 3871c2ef9aa1dfeba4631a17efdbf486012d47a6
p4raw-id: //depot/perl@19197
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4273,7 +4273,7 @@ Perl_newCONSTSUB(pTHX_ HV *stash, char *name, SV *sv) CopSTASH_set(PL_curcop,stash); } - cv = newXS(name, const_sv_xsub, CopFILE(PL_curcop)); + cv = newXS(name, const_sv_xsub, savepv(CopFILE(PL_curcop))); CvXSUBANY(cv).any_ptr = sv; CvCONST_on(cv); sv_setpv((SV*)cv, ""); /* prototype is "" */ |