diff options
Diffstat (limited to 'scope.c')
-rw-r--r-- | scope.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -959,6 +959,10 @@ Perl_leave_scope(pTHX_ I32 base) PL_op = (OP*)SSPOPPTR; break; case SAVEt_HINTS: + if ((PL_hints & HINT_LOCALIZE_HH) && GvHV(PL_hintgv)) { + SvREFCNT_dec((SV*)GvHV(PL_hintgv)); + GvHV(PL_hintgv) = NULL; + } *(I32*)&PL_hints = (I32)SSPOPINT; break; case SAVEt_COMPPAD: |