X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Frrdcalctemplate.c;h=2c5e2bd1616b1fc290e13022819cf98d59b3c4f2;hb=afb65dc134513bdc9220d332d534f8f53cedf434;hp=1deec43a5ca2e04bc001c4e799225d033182d15d;hpb=e19a6cb6bd31e175842dc4c3b61fd3fe78eeab2c;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) {