From f46eb1b6cb056859efc56ec5be953fc09fe23784 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Mon, 20 Jul 2009 00:40:23 -0600 Subject: [PATCH] Fix minor memleak. --- src/conky.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/conky.c b/src/conky.c index 0bc0fae0..87cacb28 100644 --- a/src/conky.c +++ b/src/conky.c @@ -930,6 +930,7 @@ static void free_text_objects(struct text_object *root, int internal) #endif #ifdef HAVE_LUA case OBJ_lua: + case OBJ_lua_parse: case OBJ_lua_bar: #ifdef X11 case OBJ_lua_graph: @@ -4691,6 +4692,7 @@ static void generate_text_internal(char *p, int p_max_size, char *str = llua_getstring(obj->data.s); if (str) { evaluate(str, p); + free(str); } } OBJ(lua_bar) {