Re: bleedperl perl_alloc..free leakage
authorRadu Greab <radu@netsoft.ro>
Fri, 6 Jul 2001 19:48:54 +0000 (22:48 +0300)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 7 Jul 2001 15:12:36 +0000 (15:12 +0000)
Message-ID: <15173.60406.308246.456184@ix.netsoft.ro>

Leak-be-gone.

p4raw-id: //depot/perl@11188

op.c

diff --git a/op.c b/op.c
index 92d15da..bb288a3 100644 (file)
--- a/op.c
+++ b/op.c
@@ -842,12 +842,12 @@ clear_pmop:
                    lastpmop = pmop;
                    pmop = pmop->op_pmnext;
                }
+           }
 #ifdef USE_ITHREADS
-               Safefree(PmopSTASHPV(cPMOPo));
+           Safefree(PmopSTASHPV(cPMOPo));
 #else
-               /* NOTE: PMOP.op_pmstash is not refcounted */
+           /* NOTE: PMOP.op_pmstash is not refcounted */
 #endif
-           }
        }
        cPMOPo->op_pmreplroot = Nullop;
        ReREFCNT_dec(PM_GETRE(cPMOPo));