X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fwrite_riemann.c;h=5c59c92e4c50341c27fcb380188363685783d5d6;hb=70ea9457f76d6cd953f2cbd64eeda0ff265f47db;hp=73d202c42fe8f228aaea46279dd12827a16d0371;hpb=1978dba8e613eb01581b3376a42137e6fe11ca1a;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);