with DEBUG_LEAKING_SCALARS, dump multiply-freed scalars
Dave Mitchell [Sun, 15 Apr 2007 16:32:42 +0000 (16:32 +0000)]
p4raw-id: //depot/perl@30962

sv.c

diff --git a/sv.c b/sv.c
index 43ab8bd..c194ab3 100644 (file)
--- 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;