]> arthur.barton.de Git - netdata.git/blobdiff - src/rrdcalctemplate.c
dns_query_time plugin: replace "." with "_" in dimensions
[netdata.git] / src / rrdcalctemplate.c
index 1deec43a5ca2e04bc001c4e799225d033182d15d..2c5e2bd1616b1fc290e13022819cf98d59b3c4f2 100644 (file)
@@ -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) {