summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-06 15:04:03 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-06 15:04:03 +0000
commit85cdd78cda5343abb5bce44ea1ca132aa141cffb (patch)
treedf099412d92cf7456ea932f9f541fcf8d5e79006 /gv.c
parent8869a4b7db5149b6d9c970c82998a4dfd04e18b8 (diff)
downloadperl-85cdd78cda5343abb5bce44ea1ca132aa141cffb.tar.gz
Fix a small leak on loading *+ and *- globs
p4raw-id: //depot/perl@30487
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gv.c b/gv.c
index d56e8d0691..f714421e32 100644
--- a/gv.c
+++ b/gv.c
@@ -1225,6 +1225,8 @@ Perl_gv_fetchpvn_flags(pTHX_ const char *nambeg, STRLEN full_len, I32 flags,
if (sv_type == SVt_PVHV)
require_tie_mod(gv, name, stashname, "FETCH", 0);
+ else
+ SvREFCNT_dec(stashname);
break;
}