X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_cache.c;h=e2c64261d34aa363aacb41c315fd152204397445;hb=40aabf444e124f40603021821e98bcc40c4aaa0e;hp=3f7a596b1d6acae1b4ce6a4e82db7346a3ac78d3;hpb=1978dba8e613eb01581b3376a42137e6fe11ca1a;p=collectd.git diff --git a/src/daemon/utils_cache.c b/src/daemon/utils_cache.c index 3f7a596b..e2c64261 100644 --- a/src/daemon/utils_cache.c +++ b/src/daemon/utils_cache.c @@ -193,12 +193,13 @@ static int uc_insert (const data_set_t *ds, const value_list_t *vl, / 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) */