X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fwrite_riemann.c;h=5c59c92e4c50341c27fcb380188363685783d5d6;hb=4825cf6e51535f5c1550bc753bbc2f5161905543;hp=73d202c42fe8f228aaea46279dd12827a16d0371;hpb=83bd4369fc36851bb9a92d0dd3a9d3bc6a408fdd;p=collectd.git diff --git a/src/write_riemann.c b/src/write_riemann.c index 73d202c4..5c59c92e 100644 --- a/src/write_riemann.c +++ b/src/write_riemann.c @@ -1050,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);