From: Dave Mitchell Date: Tue, 19 Apr 2005 23:31:52 +0000 (+0000) Subject: DEBUG_LEAKING_SCALARS could use the value of a freed PL_op X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4d4948808560f73c9be361930114c89552276998;p=p5sagit%2Fp5-mst-13.2.git DEBUG_LEAKING_SCALARS could use the value of a freed PL_op p4raw-id: //depot/perl@24255 --- diff --git a/op.c b/op.c index a226aad..8264232 100644 --- a/op.c +++ b/op.c @@ -313,6 +313,10 @@ Perl_op_free(pTHX_ OP *o) op_clear(o); FreeOp(o); +#ifdef DEBUG_LEAKING_SCALARS + if (PL_op == o) + PL_op = Nullop; +#endif } void