Use SvREFCNT_dec_NN in one place in hv.h
authorFather Chrysostomos <sprout@cpan.org>
Thu, 13 Dec 2012 14:05:33 +0000 (06:05 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 15 Dec 2012 14:57:44 +0000 (06:57 -0800)
In this instance, we know that av is not null, so no need to check
whether it is

hv.c

diff --git a/hv.c b/hv.c
index e9e3b27..966a12f 100644 (file)
--- a/hv.c
+++ b/hv.c
@@ -2213,7 +2213,7 @@ Perl_hv_kill_backrefs(pTHX_ HV *hv) {
        HvAUX(hv)->xhv_backreferences = 0;
        Perl_sv_kill_backrefs(aTHX_ MUTABLE_SV(hv), av);
        if (SvTYPE(av) == SVt_PVAV)
-           SvREFCNT_dec(av);
+           SvREFCNT_dec_NN(av);
     }
 }