summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a850c51)
raw | patch | inline | side by side (parent: a850c51)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 5 Dec 2015 11:11:26 +0000 (12:11 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 5 Dec 2015 20:28:21 +0000 (21:28 +0100) |
CID #37996
Signed-off-by: Florian Forster <octo@collectd.org>
Signed-off-by: Florian Forster <octo@collectd.org>
src/write_riemann.c | patch | blob | history |
diff --git a/src/write_riemann.c b/src/write_riemann.c
index a09c72361f910ac8615a219fd9187da36e77a819..328341ea0e0fe9234feb8f6c5124379725f5bff9 100644 (file)
--- a/src/write_riemann.c
+++ b/src/write_riemann.c
}
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);