summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-05-19 21:44:14 +0000
committerNicholas Clark <nick@ccl4.org>2006-05-19 21:44:14 +0000
commitec2a1de722601129850327b38324ac227c58147a (patch)
tree878e2d1ea608110670452f49b076da5b00a58cc6 /mg.c
parentd2317f5992d5f2c94bab7f9255eb080a8a677efb (diff)
downloadperl-ec2a1de722601129850327b38324ac227c58147a.tar.gz
Correct Perl_refcounted_he_chain_2hv() and its caller - it doesn't
store a reference to the value, so don't pass it in a new SV. p4raw-id: //depot/perl@28245
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 7e7372d7f4..c8c935af90 100644
--- a/mg.c
+++ b/mg.c
@@ -2877,7 +2877,7 @@ Perl_magic_sethint(pTHX_ SV *sv, MAGIC *mg)
PL_hints |= HINT_LOCALIZE_HH;
PL_compiling.cop_hints
= Perl_refcounted_he_new(aTHX_ PL_compiling.cop_hints,
- (SV *)mg->mg_ptr, newSVsv(sv));
+ (SV *)mg->mg_ptr, sv);
return 0;
}