diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-07-08 01:24:25 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-07-08 01:24:25 +0000 |
commit | f248d07102861fd4d0819cc0b602f81105bc562c (patch) | |
tree | 56fb766b87f14a99fd56b491dc6fa138a5c63e0f /gv.c | |
parent | 3e3318e754fa4289ad1c682811dbe6a31cd59e26 (diff) | |
download | perl-f248d07102861fd4d0819cc0b602f81105bc562c.tar.gz |
fixes for logical bugs in the lexwarn patch; other tweaks to avoid
type mismatch problems
p4raw-id: //depot/perl@3658
Diffstat (limited to 'gv.c')
-rw-r--r-- | gv.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -947,14 +947,16 @@ Perl_gp_ref(pTHX_ GP *gp) void Perl_gp_free(pTHX_ GV *gv) { + dTHR; GP* gp; CV* cv; - dTHR; if (!gv || !(gp = GvGP(gv))) return; - if (gp->gp_refcnt == 0 && ckWARN_d(WARN_INTERNAL)) { - Perl_warner(aTHX_ WARN_INTERNAL, "Attempt to free unreferenced glob pointers"); + if (gp->gp_refcnt == 0) { + if (ckWARN_d(WARN_INTERNAL)) + Perl_warner(aTHX_ WARN_INTERNAL, + "Attempt to free unreferenced glob pointers"); return; } if (gp->gp_cv) { |