summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian M. Enache <enache@rdslink.ro>2003-07-08 23:47:58 +0300
committerJarkko Hietaniemi <jhi@iki.fi>2003-07-08 17:39:49 +0000
commit6be89cf94680405f8f1461b8bee33f362ab7e905 (patch)
tree99dbf7a9eecdf9e1773cefcde4f3725afad55c34
parent72c58aaf3b55c3daa0d6b841f9ea19a5581af438 (diff)
downloadperl-6be89cf94680405f8f1461b8bee33f362ab7e905.tar.gz
Re: [PATCH] $^VARIABLES in 'perl -Dt' output
Message-ID: <20030708174758.GA1177@ratsnest.hole> (ByteLoader tweak avoiding a leaked scalar) p4raw-id: //depot/perl@20076
-rw-r--r--op.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/op.c b/op.c
index 7bcf40bdeb..70f5160ff1 100644
--- 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);