Re: [perl #20777] [PATCH] goto &subroutine leaks memory
Adrian M. Enache [Mon, 10 Feb 2003 19:54:13 +0000 (19:54 +0000)]
Message-Id: <20030209201025.GA1247@ratsnest.hole>

p4raw-id: //depot/perl@18688

pp_ctl.c

index a08e2b6..73d1365 100644 (file)
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2102,6 +2102,7 @@ PP(pp_goto)
            }
 
            /* First do some returnish stuff. */
+           FREETMPS;
            cxix = dopoptosub(cxstack_ix);
            if (cxix < 0)
                DIE(aTHX_ "Can't goto subroutine outside a subroutine");