summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hv.c b/hv.c
index 376b5dcf49..fb9dfec1be 100644
--- a/hv.c
+++ b/hv.c
@@ -1803,7 +1803,7 @@ S_hfreeentries(pTHX_ HV *hv)
HvARRAY(hv) = orig_array;
- if (has_aux)
+ if (has_aux && current_aux)
SvFLAGS(hv) |= SVf_OOK;
else
SvFLAGS(hv) &=~SVf_OOK;