summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 903a58a)
raw | patch | inline | side by side (parent: 903a58a)
author | Florian Forster <octo@collectd.org> | |
Fri, 19 Jun 2015 08:54:02 +0000 (10:54 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 19 Jun 2015 08:58:24 +0000 (10:58 +0200) |
src/utils_cache.c | patch | blob | history |
diff --git a/src/utils_cache.c b/src/utils_cache.c
index dc0ff0df27b33f21d5f3701c2d18648ae35a8ce6..7eae1c7ed5121e6cb01f15f10336392911ade236 100644 (file)
--- a/src/utils_cache.c
+++ b/src/utils_cache.c
@@ -636,12 +636,13 @@ int uc_get_names (char ***ret_names, cdtime_t **ret_times, size_t *ret_number)
if (status != 0)
{
size_t i;
-
+
for (i = 0; i < number; i++)
{
sfree (names[i]);
}
sfree (names);
+ sfree (times);
return (-1);
}