summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 02f8dbc)
raw | patch | inline | side by side (parent: 02f8dbc)
author | Florian Forster <octo@collectd.org> | |
Wed, 28 Sep 2016 15:53:34 +0000 (17:53 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 28 Sep 2016 15:53:34 +0000 (17:53 +0200) |
Fixes: #1955
src/write_http.c | patch | blob | history |
diff --git a/src/write_http.c b/src/write_http.c
index 41615d3f0ccbd0be9c1cefba46708a4ace10e680..4a5818c76bc13f824cb8270b169bcedf75cbc27b 100644 (file)
--- a/src/write_http.c
+++ b/src/write_http.c
callback_name, cb->location);
user_data_t user_data = {
- .data = cb
+ .data = cb,
+ .free_func = wh_callback_free,
};
- plugin_register_flush (callback_name, wh_flush, &user_data);
-
- user_data.free_func = wh_callback_free;
-
if (cb->send_metrics)
{
plugin_register_write (callback_name, wh_write, &user_data);