summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7806744)
raw | patch | inline | side by side (parent: 7806744)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 5 Dec 2015 12:39:03 +0000 (13:39 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 5 Dec 2015 20:32:44 +0000 (21:32 +0100) |
CID #38000
Signed-off-by: Florian Forster <octo@collectd.org>
Signed-off-by: Florian Forster <octo@collectd.org>
src/utils_cache.c | patch | blob | history |
diff --git a/src/utils_cache.c b/src/utils_cache.c
index 910e30b29cbec6d99974eae30bb0f9418bb80a16..5598f687a7c77b8647d583ed326cb3148b6c061c 100644 (file)
--- a/src/utils_cache.c
+++ b/src/utils_cache.c
/ CDTIME_T_TO_DOUBLE (vl->interval);
ce->values_raw[i].absolute = vl->values[i].absolute;
break;
-
+
default:
/* This shouldn't happen. */
ERROR ("uc_insert: Don't know how to handle data source type %i.",
ds->ds[i].type);
sfree (key_copy);
+ cache_free (ce);
return (-1);
} /* switch (ds->ds[i].type) */
} /* for (i) */