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
authorDavid Mitchell <davem@iabyn.com>
Thu, 15 Oct 2015 13:26:21 +0000 (14:26 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 08:59:43 +0000 (08:59 +0000)
This was the only branch that didn't clear up the context stack as
part of a context stack unwind.

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: