summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-04-15 16:32:42 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-04-15 16:32:42 +0000
commite4c5322dee1b8e87ff0e7aee20effad846301447 (patch)
treea8845da946c0c058b62278d23a447b41384c7584 /sv.c
parentbb0fc3611a9600cbe695ca07788dc98357c8a1a7 (diff)
downloadperl-e4c5322dee1b8e87ff0e7aee20effad846301447.tar.gz
with DEBUG_LEAKING_SCALARS, dump multiply-freed scalars
p4raw-id: //depot/perl@30962
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 43ab8bde85..c194ab3710 100644
--- a/sv.c
+++ b/sv.c
@@ -5266,6 +5266,10 @@ Perl_sv_free(pTHX_ SV *sv)
pTHX__FORMAT, PTR2UV(sv) pTHX__VALUE);
#ifdef DEBUG_LEAKING_SCALARS_FORK_DUMP
Perl_dump_sv_child(aTHX_ sv);
+#else
+ #ifdef DEBUG_LEAKING_SCALARS
+ sv_dump(sv);
+ #endif
#endif
}
return;