diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2008-05-18 12:40:36 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2008-05-18 12:40:36 +0000 |
commit | e385c3bfc8853b925197cc2ddff78a11bae595e5 (patch) | |
tree | 647e36282494307697b8e1c048c7856c2df08be1 /sv.c | |
parent | 8233f60648c4d7c6fe2ee4948ff96b64f4c18d2f (diff) | |
download | perl-e385c3bfc8853b925197cc2ddff78a11bae595e5.tar.gz |
DEBUG_LEAKING_SCALARS wasn't reporting the correct line number
of SVs allocated at runtime
p4raw-id: //depot/perl@33854
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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; |