This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SvREFCNT_dec already checks if the SV is non-NULL
[perl5.git]
/
hv.c
diff --git
a/hv.c
b/hv.c
index
f8f16b6
..
d6ecfb4
100644
(file)
--- a/
hv.c
+++ b/
hv.c
@@
-1813,7
+1813,7
@@
Perl_hv_undef_flags(pTHX_ HV *hv, U32 flags)
SvREFCNT_dec(meta->mro_linear_current);
meta->mro_linear_current = NULL;
}
-
if(meta->mro_nextmethod)
SvREFCNT_dec(meta->mro_nextmethod);
+ SvREFCNT_dec(meta->mro_nextmethod);
SvREFCNT_dec(meta->isa);
Safefree(meta);
aux->xhv_mro_meta = NULL;