summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-06-30 02:45:58 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-06-30 02:45:58 +0000
commite71adc93cd756f1ce86f38c506c9d3fbb0fa1810 (patch)
treea48fe102b7408dfcd8eeb72643e4222d5bfbae12
parent203d3f29cd3ae9183e6599d2513c004ec3fdd9ee (diff)
downloadperl-e71adc93cd756f1ce86f38c506c9d3fbb0fa1810.tar.gz
Retract #17380, the refcnt tweak was misplaced (re_dup is used
when creation of new threads needs to duplicate the re struct) p4raw-id: //depot/perl@17383
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 270c58d0eb..fa629aec8f 100644
--- a/sv.c
+++ b/sv.c
@@ -8612,7 +8612,7 @@ Perl_re_dup(pTHX_ REGEXP *r, CLONE_PARAMS *param)
Copy(r->offsets, ret->offsets, 2*len+1, U32);
ret->precomp = SAVEPV(r->precomp);
- ret->refcnt = 1;
+ ret->refcnt = r->refcnt;
ret->minlen = r->minlen;
ret->prelen = r->prelen;
ret->nparens = r->nparens;