* Authors:
* Florian octo Forster <octo at collectd.org>
* Manoj Srivastava <srivasta at google.com>
+ * Elene Margalitadze <elene.margalit at gmail.com>
**/
#include "collectd.h"
*
* Authors:
* Florian octo Forster <octo at collectd.org>
+ * Elene Margalitadze <elene.margalit at gmail.com>
*/
#include "collectd.h"
};
for (size_t i = 0; i < sizeof(cases) / sizeof(cases[0]); i++) {
- metric_t *m = NULL;
+ metric_t *m = malloc(sizeof(metric_t*));
CHECK_NOT_NULL(m = metric_parse_identity(cases[i].identity));
m->family->type = cases[i].type;