mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
Fix minor memleak.
This commit is contained in:
parent
5f1fb1fc46
commit
f46eb1b6cb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user