This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
stop DEBUG_LEAKING_SCALARS, er, leaking!
[perl5.git] / sv.c
diff --git a/sv.c b/sv.c
index abb4f32..84f3ab1 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -11404,6 +11404,7 @@ S_sv_dup_common(pTHX_ const SV *const sstr, CLONE_PARAMS *const param)
     dstr->sv_debug_line = sstr->sv_debug_line;
     dstr->sv_debug_inpad = sstr->sv_debug_inpad;
     dstr->sv_debug_parent = (SV*)sstr;
+    FREE_SV_DEBUG_FILE(dstr);
     dstr->sv_debug_file = savepv(sstr->sv_debug_file);
 #endif