Add DEBUG_LEAKING_SCALARS_ABORT, to call abort() if any scalars leak,
[perl.git] / sv.c
diff --git a/sv.c b/sv.c
index 9268e56..5dfbba1 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -5431,6 +5431,9 @@ Perl_sv_free(pTHX_ SV *sv)
   #endif
 #endif
        }
+#ifdef DEBUG_LEAKING_SCALARS_ABORT
+       abort();
+#endif
        return;
     }
     if (--(SvREFCNT(sv)) > 0)