fix typo in gp_free
authorDave Mitchell <davem@fdisolutions.com>
Sun, 20 Jun 2004 11:50:19 +0000 (11:50 +0000)
committerDave Mitchell <davem@fdisolutions.com>
Sun, 20 Jun 2004 11:50:19 +0000 (11:50 +0000)
p4raw-id: //depot/perl@22962

gv.c

diff --git a/gv.c b/gv.c
index 68328ac..d1ba5a3 100644 (file)
--- a/gv.c
+++ b/gv.c
@@ -1261,7 +1261,7 @@ Perl_gp_free(pTHX_ GV *gv)
     }
 
     if (gp->gp_sv) SvREFCNT_dec(gp->gp_sv);
-    if (gp->gp_sv) SvREFCNT_dec(gp->gp_av);
+    if (gp->gp_av) SvREFCNT_dec(gp->gp_av);
     if (gp->gp_hv) {
         if (PL_stashcache && HvNAME(gp->gp_hv))
              hv_delete(PL_stashcache,