Code

Merge branch 'collectd-5.5'
authorFlorian Forster <octo@collectd.org>
Tue, 8 Dec 2015 13:42:07 +0000 (14:42 +0100)
committerFlorian Forster <octo@collectd.org>
Tue, 8 Dec 2015 13:42:07 +0000 (14:42 +0100)
1  2 
src/collectd-tg.c
src/email.c
src/ping.c
src/postgresql.c
src/python.c
src/rrdtool.c
src/tail.c
src/utils_format_json.c

Simple merge
diff --cc src/email.c
Simple merge
diff --cc src/ping.c
Simple merge
Simple merge
diff --cc src/python.c
index 210d785c847d9d5b6e5577efdca0001163ffd9c7,c7a82c49ee6aa7a3abb2c8ed729d90b736d5110f..1897b6d8e2d8b3286e9e1fc3066037734fea41cd
@@@ -662,11 -702,16 +692,13 @@@ static PyObject *cpy_register_read(PyOb
        c->callback = callback;
        c->data = data;
        c->next = NULL;
-       user_data = malloc(sizeof(*user_data));
-       user_data->free_func = cpy_destroy_user_data;
-       user_data->data = c;
-       plugin_register_complex_read(/* group = */ NULL, buf,
-                       cpy_read_callback, DOUBLE_TO_CDTIME_T (interval), user_data);
+       memset (&user_data, 0, sizeof (user_data));
+       user_data.free_func = cpy_destroy_user_data;
+       user_data.data = c;
 -      ts.tv_sec = interval;
 -      ts.tv_nsec = (interval - ts.tv_sec) * 1000000000;
+       plugin_register_complex_read(/* group = */ "python", buf,
 -                      cpy_read_callback, &ts, &user_data);
 -
++                      cpy_read_callback, DOUBLE_TO_CDTIME_T (interval), &user_data);
        return cpy_string_to_unicode_or_bytes(buf);
  }
  
diff --cc src/rrdtool.c
Simple merge
diff --cc src/tail.c
Simple merge
Simple merge