This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: Add detail to debugging statement
authorKarl Williamson <khw@cpan.org>
Mon, 19 Mar 2018 21:53:04 +0000 (15:53 -0600)
committerKarl Williamson <khw@cpan.org>
Mon, 19 Mar 2018 22:27:09 +0000 (16:27 -0600)
so that it is easier to debug memory leaks.

locale.c

index 2079264..835837b 100644 (file)
--- a/locale.c
+++ b/locale.c
@@ -1042,7 +1042,7 @@ S_emulate_setlocale(const int category,
 #  ifdef DEBUGGING
 
     if (DEBUG_Lv_TEST || debug_initialization) {
-        PerlIO_printf(Perl_debug_log, "%s:%d: emulate_setlocale created %p\n", __FILE__, __LINE__, new_obj);
+        PerlIO_printf(Perl_debug_log, "%s:%d: emulate_setlocale created %p; should have freed %p\n", __FILE__, __LINE__, new_obj, old_obj);
     }
 
 #  endif