Merge branch 'collectd-4.6' into collectd-4.7
[collectd.git] / src / utils_cache.c
index 2f70ffe..60d3283 100644 (file)
@@ -350,6 +350,10 @@ int uc_check_timeout (void)
          keys[i], status);
       sfree (keys[i]);
     }
+
+    /* Make really sure the next iteration doesn't work with this pointer.
+     * There have been too many bugs in the past.. :/  -- octo */
+    ce = NULL;
   } /* for (keys[i]) */
 
   c_avl_iterator_destroy (iter);