From dc2a8e1de8f924909a2758dad3ed27f80018178d Mon Sep 17 00:00:00 2001 From: Nikos Ntarmos Date: Thu, 28 May 2009 16:41:48 +0300 Subject: [PATCH] free(3) strdup(3)'ed templates array Signed-off-by: Nikos Ntarmos Signed-off-by: Brenden Matthews --- src/conky.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/conky.c b/src/conky.c index a82c08a..e670cf4 100644 --- a/src/conky.c +++ b/src/conky.c @@ -6944,6 +6944,7 @@ static void reload_config(void) static void clean_up(void) { + int i; timed_thread_destroy_registered_threads(); if (info.cpu_usage) { @@ -6972,6 +6973,12 @@ static void clean_up(void) XFreeGC(display, window.gc); free_fonts(); + for (i = 0; i < 10; i ++) { + if (template[i]) { + free(template[i]); + template[i] = NULL; + } + } } #endif /* X11 */ -- 1.7.9.5