summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2004-08-06 11:57:59 +0000
committerSteve Hay <SteveHay@planit.com>2004-08-06 11:57:59 +0000
commit7d54d38ea123279986bac06bc420bfdc4e2395fb (patch)
treecac3c0441e9f14fc05eff137bc5508bce605bd95 /gv.c
parentf9be5ac81a1b4bd2859cd05fa3a616e17a46b37c (diff)
downloadperl-7d54d38ea123279986bac06bc420bfdc4e2395fb.tar.gz
Another small clean-up following changes #23190 and #23198
p4raw-link: @23190 on //depot/perl: d7aa53827cc12fdf8a697328df844e16aaa58287 p4raw-id: //depot/perl@23199
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gv.c b/gv.c
index 7474e81d83..a461e0dfba 100644
--- a/gv.c
+++ b/gv.c
@@ -1063,9 +1063,9 @@ Perl_gv_fetchpv(pTHX_ const char *nambeg, I32 add, I32 sv_type)
SV *sv = GvSV(gv);
if (!sv_derived_from(PL_patchlevel, "version"))
(void *)upg_version(PL_patchlevel);
- sv = vnumify(PL_patchlevel);
- SvREADONLY_on(sv);
- GvSV(gv) = sv;
+ GvSV(gv) = vnumify(PL_patchlevel);
+ SvREADONLY_on(GvSV(gv));
+ SvREFCNT_dec(sv);
}
break;
case '\026': /* $^V */