summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-07-11 20:37:23 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-07-11 20:37:23 +0000
commitc2e66d9e68806a7000ee1a4760c35703a0e0ae89 (patch)
tree32508ca896b6e213afc07430f7aa223c0e9dde28 /pp_hot.c
parent4755096ec61711c5104ba0b6b9314f32ca0351fe (diff)
downloadperl-c2e66d9e68806a7000ee1a4760c35703a0e0ae89.tar.gz
integrate cfgperl changes#6325..6373 into mainline
(NOTE: today's batch of integrations still untested) p4raw-link: @6373 (not found) p4raw-link: @6325 on //depot/cfgperl: d6ac44cc5a00fa38a56717785146bc16b716472c p4raw-id: //depot/perl@6373
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 1a9416eb5b..66d22bcc75 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -2236,7 +2236,9 @@ S_get_db_sub(pTHX_ SV **svp, CV *cv)
&& (gv = (GV*)*svp) ))) {
/* Use GV from the stack as a fallback. */
/* GV is potentially non-unique, or contain different CV. */
- sv_setsv(dbsv, newRV((SV*)cv));
+ SV *tmp = newRV((SV*)cv);
+ sv_setsv(dbsv, tmp);
+ SvREFCNT_dec(tmp);
}
else {
gv_efullname3(dbsv, gv, Nullch);