summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-06-02 22:43:13 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-06-02 22:43:13 +0000
commit63caf6080702341afbd2806f3d0b2bb9ccae687d (patch)
tree382933e16a51b25f2c4fa3454c433bce41bd3bcd
parentf4dd75d9918abbf789a5eca453b89168cad18ff0 (diff)
downloadperl-63caf6080702341afbd2806f3d0b2bb9ccae687d.tar.gz
fix yet another eval"" leak under USE_ITHREADS
p4raw-id: //depot/perl@6195
-rw-r--r--op.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/op.c b/op.c
index affb5974f2..9a16105477 100644
--- a/op.c
+++ b/op.c
@@ -5339,6 +5339,7 @@ Perl_ck_rvconst(pTHX_ register OP *o)
#ifdef USE_ITHREADS
/* XXX hack: dependence on sizeof(PADOP) <= sizeof(SVOP) */
kPADOP->op_padix = pad_alloc(OP_GV, SVs_PADTMP);
+ SvREFCNT_dec(PL_curpad[kPADOP->op_padix]);
GvIN_PAD_on(gv);
PL_curpad[kPADOP->op_padix] = SvREFCNT_inc(gv);
#else