This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
back out change #22167 "freeing a CV reference that was currently
[perl5.git] / scope.c
diff --git a/scope.c b/scope.c
index 1da8ebe..2c2ce36 100644 (file)
--- a/scope.c
+++ b/scope.c
@@ -1045,10 +1045,8 @@ Perl_leave_scope(pTHX_ I32 base)
            break;
        case SAVEt_COMPPAD:
            PL_comppad = (PAD*)SSPOPPTR;
-           if (PL_comppad) {
+           if (PL_comppad)
                PL_curpad = AvARRAY(PL_comppad);
-               SvREFCNT_dec(PL_comppad);
-           }               
            else
                PL_curpad = Null(SV**);
            break;