Re: [PATCH] $^VARIABLES in 'perl -Dt' output
Adrian M. Enache [Tue, 8 Jul 2003 20:47:58 +0000 (23:47 +0300)]
Message-ID: <20030708174758.GA1177@ratsnest.hole>

(ByteLoader tweak avoiding a leaked scalar)

p4raw-id: //depot/perl@20076

op.c

diff --git a/op.c b/op.c
index 7bcf40b..70f5160 100644 (file)
--- a/op.c
+++ b/op.c
@@ -1829,8 +1829,11 @@ Perl_newPROG(pTHX_ OP *o)
        CALL_PEEP(PL_eval_start);
     }
     else {
-       if (o->op_type == OP_STUB)
+       if (o->op_type == OP_STUB) {
+           PL_comppad_name = 0;
+           PL_compcv = 0;
            return;
+       }
        PL_main_root = scope(sawparens(scalarvoid(o)));
        PL_curcop = &PL_compiling;
        PL_main_start = LINKLIST(PL_main_root);