summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index 14664a26c5..d4615d130c 100644
--- a/scope.c
+++ b/scope.c
@@ -911,6 +911,7 @@ Perl_leave_scope(pTHX_ I32 base)
av_clear(MUTABLE_AV(sv));
break;
case SVt_PVHV:
+ Perl_hv_kill_backrefs(aTHX_ MUTABLE_HV(sv));
hv_clear(MUTABLE_HV(sv));
break;
case SVt_PVCV: