X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Frrdcalctemplate.c;h=2c5e2bd1616b1fc290e13022819cf98d59b3c4f2;hb=bb22adc2c47d51c8e0f8ad7c7a95c66e9e53760b;hp=1deec43a5ca2e04bc001c4e799225d033182d15d;hpb=1d0c1b2c14712b9da7270450b275726322f5f680;p=netdata.git diff --git a/src/rrdcalctemplate.c b/src/rrdcalctemplate.c index 1deec43a..2c5e2bd1 100644 --- a/src/rrdcalctemplate.c +++ b/src/rrdcalctemplate.c @@ -23,6 +23,8 @@ void rrdcalctemplate_link_matching(RRDSET *st) { } inline void rrdcalctemplate_free(RRDHOST *host, RRDCALCTEMPLATE *rt) { + if(unlikely(!rt)) return; + debug(D_HEALTH, "Health removing template '%s' of host '%s'", rt->name, host->hostname); if(host->templates == rt) {