From e3d1da97ee6b6543ddfdfaff15d88b3750aa2047 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 19 Jun 2015 10:54:02 +0200 Subject: [PATCH] utils_cache plugin: Fix memory leak. --- src/utils_cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils_cache.c b/src/utils_cache.c index dc0ff0df..7eae1c7e 100644 --- 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); } -- 2.11.0