This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix variable names in 'ununit var' warnings in evals
[perl5.git] / pp_ctl.c
index 7be56fb..1dcca0b 100644 (file)
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3564,6 +3564,11 @@ PP(pp_require)
 
     SAVEHINTS();
     PL_hints = 0;
+    if (PL_compiling.cop_hints_hash) {
+       Perl_refcounted_he_free(aTHX_ PL_compiling.cop_hints_hash);
+       PL_compiling.cop_hints_hash = NULL;
+    }
+
     SAVECOMPILEWARNINGS();
     if (PL_dowarn & G_WARN_ALL_ON)
         PL_compiling.cop_warnings = pWARN_ALL ;