From: Jarkko Hietaniemi Date: Sun, 30 Jun 2002 02:45:58 +0000 (+0000) Subject: Retract #17380, the refcnt tweak was misplaced (re_dup is used X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e71adc93cd756f1ce86f38c506c9d3fbb0fa1810;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/sv.c b/sv.c index 270c58d..fa629ae 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;