diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-02-24 21:42:33 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-02-24 21:42:33 +0000 |
commit | dd38834bfe79dc631f1823deed588b23c6db62d5 (patch) | |
tree | 5a031a7bf763077367771333987d7b3e18afdc24 /gv.c | |
parent | 064cf52948e2ac0b1b809d55fe1b456a0b0fa4c4 (diff) | |
download | perl-dd38834bfe79dc631f1823deed588b23c6db62d5.tar.gz |
Given that Perl_gp_free() is refcount-dec-and-maybe-free for the glob
pointer, it's inconsistent that it only sets this GV's GvGP to 0 if
this GV happened to have the last reference. Why should this GV care if
it had the last reference? So always set it to 0. It's free. Gone.
p4raw-id: //depot/perl@27320
Diffstat (limited to 'gv.c')
-rw-r--r-- | gv.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1390,6 +1390,7 @@ Perl_gp_free(pTHX_ GV *gv) if (--gp->gp_refcnt > 0) { if (gp->gp_egv == gv) gp->gp_egv = 0; + GvGP(gv) = 0; return; } |