(Retracted by #17383)
Hugo van der Sanden [Fri, 28 Jun 2002 14:29:43 +0000 (15:29 +0100)]
Subject: Re: [ID 20020627.002] Regexp causing segmentation fault
Message-Id: <200206281329.g5SDThO10165@crypt.compulink.co.uk>

p4raw-id: //depot/perl@17380

sv.c

diff --git a/sv.c b/sv.c
index fa629ae..270c58d 100644 (file)
--- 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         = r->refcnt;
+    ret->refcnt         = 1;
     ret->minlen         = r->minlen;
     ret->prelen         = r->prelen;
     ret->nparens        = r->nparens;