summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hv.c b/hv.c
index 2962de3b0d..0f57afb770 100644
--- a/hv.c
+++ b/hv.c
@@ -1209,7 +1209,7 @@ Perl_newHVhv(pTHX_ HV *ohv)
STRLEN len = HeKLEN_UTF8(oent);
ent = new_HE();
- HeVAL(ent) = SvREFCNT_inc(HeVAL(oent));
+ HeVAL(ent) = newSVsv(HeVAL(oent));
HeKEY_hek(ent) = shared ? share_hek(key, len, hash)
: save_hek(key, len, hash);
if (prev)