]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
modify cache_free to destroy distributions
authorSvetlana Shmidt <sshmidt@google.com>
Wed, 16 Sep 2020 09:35:31 +0000 (09:35 +0000)
committerSvetlana Shmidt <sshmidt@google.com>
Wed, 16 Sep 2020 09:35:31 +0000 (09:35 +0000)
src/daemon/utils_cache.c

index bfa6d133b5ac4da9b4ccc162a0cfd1cacfb822cb..89354125b2ca68d931bebe7f220382577a55aa09 100644 (file)
@@ -123,7 +123,9 @@ static void cache_free(cache_entry_t *ce) {
   sfree(ce->history);
   meta_data_destroy(ce->meta);
   ce->meta = NULL;
-
+  typed_value_destroy(ce->values_raw);
+  typed_value_destroy(ce->start_value);
+  distribution_destroy(ce->distribution_increase);
   sfree(ce);
 } /* void cache_free */