From: Rafael Garcia-Suarez Date: Mon, 7 Aug 2006 14:10:15 +0000 (+0000) Subject: We shouldn't try to decrement the refcount of PL_warnhook X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9289f461126f104eef437e7c6d2f1f640f935646;p=p5sagit%2Fp5-mst-13.2.git We shouldn't try to decrement the refcount of PL_warnhook if it has been set to PERL_WARNHOOK_FATAL. p4raw-id: //depot/perl@28669 --- diff --git a/mg.c b/mg.c index 8e00fb2..3f2fd5a 100644 --- a/mg.c +++ b/mg.c @@ -1384,7 +1384,8 @@ Perl_magic_setsig(pTHX_ SV *sv, MAGIC *mg) Perl_croak(aTHX_ "No such hook: %s", s); i = 0; if (*svp) { - to_dec = *svp; + if (*svp != PERL_WARNHOOK_FATAL) + to_dec = *svp; *svp = NULL; } }