Re: [patch] ignore PL_curpm in PL_regex_padav cleanup
Doug MacEachern [Sat, 4 Aug 2001 09:43:02 +0000 (02:43 -0700)]
Message-ID: <Pine.LNX.4.21.0108040939050.23972-100000@mako.covalent.net>

p4raw-id: //depot/perl@11574

perl.c
regexec.c

diff --git a/perl.c b/perl.c
index b3d1e31..28e8761 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -481,7 +481,7 @@ perl_destruct(pTHXx)
             REGEXP *re = (REGEXP *)SvIVX(resv);
 
             if (SvFLAGS(resv) & SVf_BREAK) {
-                /* this is PL_curpm, already freed
+                /* this is PL_reg_curpm, already freed
                  * flag is set in regexec.c:S_regtry
                  */
                 SvFLAGS(resv) &= ~SVf_BREAK;
index ceed381..6fd4c0f 100644 (file)
--- a/regexec.c
+++ b/regexec.c
@@ -1855,7 +1855,7 @@ S_regtry(pTHX_ regexp *prog, char *startpos)
 #ifdef USE_ITHREADS
             {
                 SV* repointer = newSViv(0);
-                /* so we know which PL_regex_padav element is PL_curpm */
+                /* so we know which PL_regex_padav element is PL_reg_curpm */
                 SvFLAGS(repointer) |= SVf_BREAK;
                 av_push(PL_regex_padav,repointer);
                 PL_reg_curpm->op_pmoffset = av_len(PL_regex_padav);