This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
include flags and refcount in the list of leaked scalars
[perl5.git] / perl.c
diff --git a/perl.c b/perl.c
index 8bb1da7..33d7dfb 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -837,9 +837,10 @@ perl_destruct(pTHXx)
            svend = &sva[SvREFCNT(sva)];
            for (sv = sva + 1; sv < svend; ++sv) {
                if (SvTYPE(sv) != SVTYPEMASK) {
-                   PerlIO_printf(Perl_debug_log, "leaked: 0x%p"
-                                  pTHX__FORMAT "\n",
-                                  sv pTHX__VALUE);
+                   PerlIO_printf(Perl_debug_log, "leaked: sv=0x%p"
+                       " flags=0x08%"UVxf
+                       " refcnt=%"UVuf pTHX__FORMAT "\n",
+                       sv, sv->sv_flags, sv->sv_refcnt pTHX__VALUE);
                }
            }
        }