summaryrefslogtreecommitdiff
path: root/mro.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-12-22 23:31:02 -0800
committerFather Chrysostomos <sprout@cpan.org>2013-05-26 00:18:23 -0700
commit060591571a005b56e3f64278ff29d2729088a9c2 (patch)
tree60d5f7b39ea51dfd699d900afe0e9b5b2fbb6055 /mro.c
parent2357bae7a0b405c6c8c0667303468707f4cd32f8 (diff)
downloadperl-060591571a005b56e3f64278ff29d2729088a9c2.tar.gz
Use SvREFCNT_dec_NN in one place in mro.c
Diffstat (limited to 'mro.c')
-rw-r--r--mro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mro.c b/mro.c
index be2038f4e7..cb679503a4 100644
--- a/mro.c
+++ b/mro.c
@@ -131,7 +131,7 @@ Perl_mro_register(pTHX_ const struct mro_alg *mro) {
if (!Perl_hv_common(aTHX_ PL_registered_mros, NULL,
mro->name, mro->length, mro->kflags,
HV_FETCH_ISSTORE, wrapper, mro->hash)) {
- SvREFCNT_dec(wrapper);
+ SvREFCNT_dec_NN(wrapper);
Perl_croak(aTHX_ "panic: hv_store() failed in mro_register() "
"for '%.*s' %d", (int) mro->length, mro->name, mro->kflags);
}