From: Dave Mitchell Date: Sun, 18 May 2008 12:40:36 +0000 (+0000) Subject: DEBUG_LEAKING_SCALARS wasn't reporting the correct line number X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e385c3bfc8853b925197cc2ddff78a11bae595e5;p=p5sagit%2Fp5-mst-13.2.git DEBUG_LEAKING_SCALARS wasn't reporting the correct line number of SVs allocated at runtime p4raw-id: //depot/perl@33854 --- diff --git a/sv.c b/sv.c index 716c2ee..9b23592 100644 --- a/sv.c +++ b/sv.c @@ -249,13 +249,12 @@ S_new_SV(pTHX) SvREFCNT(sv) = 1; SvFLAGS(sv) = 0; sv->sv_debug_optype = PL_op ? PL_op->op_type : 0; - sv->sv_debug_line = (U16) (PL_parser - ? PL_parser->copline == NOLINE - ? PL_curcop + sv->sv_debug_line = (U16) (PL_parser && PL_parser->copline != NOLINE + ? PL_parser->copline + : PL_curcop ? CopLINE(PL_curcop) : 0 - : PL_parser->copline - : 0); + ); sv->sv_debug_inpad = 0; sv->sv_debug_cloned = 0; sv->sv_debug_file = PL_curcop ? savepv(CopFILE(PL_curcop)): NULL;