summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c68a61a)
raw | patch | inline | side by side (parent: c68a61a)
author | Florian Forster <octo@collectd.org> | |
Wed, 25 Nov 2015 10:51:04 +0000 (11:51 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 25 Nov 2015 10:56:37 +0000 (11:56 +0100) |
The previous shutdown handler leaked "timer" and "set" metrics. This is
not a huge problem in itself, as the daemon is exiting shortly after
anyway, but it makes debugging of memory leaks very hard.
Issue: #997
not a huge problem in itself, as the daemon is exiting shortly after
anyway, but it makes debugging of memory leaks very hard.
Issue: #997
src/statsd.c | patch | blob | history |
diff --git a/src/statsd.c b/src/statsd.c
index 96c471d20356a8f28d605bea4a7d2991b217beed..82dbce7754aeee5815fe485236fb849449dfd151 100644 (file)
--- a/src/statsd.c
+++ b/src/statsd.c
while (c_avl_pick (metrics_tree, &key, &value) == 0)
{
sfree (key);
- sfree (value);
+ statsd_metric_free (value);
}
c_avl_destroy (metrics_tree);
metrics_tree = NULL;