X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fwrite_riemann.c;h=5c59c92e4c50341c27fcb380188363685783d5d6;hb=4825cf6e51535f5c1550bc753bbc2f5161905543;hp=26fa3f45680358ee156f8576b6adfaf30be620a9;hpb=bf1613564dfcb0a517b77d658a844ea37b45803f;p=collectd.git diff --git a/src/write_riemann.c b/src/write_riemann.c index 26fa3f45..5c59c92e 100644 --- a/src/write_riemann.c +++ b/src/write_riemann.c @@ -33,7 +33,6 @@ #include "utils_cache.h" #include "riemann.pb-c.h" -#include #include #include #include @@ -1051,6 +1050,7 @@ static int riemann_config(oconfig_item_t *ci) /* {{{ */ } if ((val = strdup(child->values[1].value.string)) == NULL) { WARNING("cannot allocate memory for attribute value."); + sfree (key); return (-1); } strarray_add(&riemann_attrs, &riemann_attrs_num, key);