This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
dounwind: CX_LEAVE_SCOPE for CXt_SUBST too
[perl5.git] / pp_ctl.c
index a35e80c..b174a05 100644 (file)
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1512,6 +1512,7 @@ Perl_dounwind(pTHX_ I32 cxix)
        /* Note: we don't need to restore the base context info till the end. */
        switch (CxTYPE(cx)) {
        case CXt_SUBST:
+            CX_LEAVE_SCOPE(cx);
            POPSUBST(cx);
            continue;  /* not break */
        case CXt_SUB: