summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 65b7501)
raw | patch | inline | side by side (parent: 65b7501)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 28 Nov 2015 19:19:26 +0000 (20:19 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 30 Nov 2015 10:50:28 +0000 (11:50 +0100) |
CID 38015
Signed-off-by: Florian Forster <octo@collectd.org>
Signed-off-by: Florian Forster <octo@collectd.org>
src/csv.c | patch | blob | history |
diff --git a/src/csv.c b/src/csv.c
index 958e34baf0d96d825e8ce9dfa79a21849db6e3d2..5268237e33e566c9878fde98e989345e55eff3a7 100644 (file)
--- a/src/csv.c
+++ b/src/csv.c
&& (ds->ds[i].type != DS_TYPE_GAUGE)
&& (ds->ds[i].type != DS_TYPE_DERIVE)
&& (ds->ds[i].type != DS_TYPE_ABSOLUTE))
+ {
+ sfree (rates);
return (-1);
+ }
- if (ds->ds[i].type == DS_TYPE_GAUGE)
+ if (ds->ds[i].type == DS_TYPE_GAUGE)
{
status = ssnprintf (buffer + offset, buffer_len - offset,
",%lf", vl->values[i].gauge);
- }
+ }
else if (store_rates != 0)
{
if (rates == NULL)