1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-14 03:23:29 +00:00

Bugfix: memleak at crash caused by missing arg

This commit is contained in:
Nikolas Garofil 2010-04-15 13:00:54 +02:00
parent 5ddf751345
commit a734f86071

View File

@ -148,7 +148,7 @@ struct text_object *construct_text_object(char *s, const char *arg, long
#define __OBJ_HEAD(a, n) if (!strcmp(s, #a)) { \
add_update_callback(n);
#define __OBJ_IF obj_be_ifblock_if(ifblock_opaque, obj)
#define __OBJ_ARG(...) if (!arg) { CRIT_ERR(obj, free_at_crash, __VA_ARGS__); }
#define __OBJ_ARG(...) if (!arg) { free(s); CRIT_ERR(obj, free_at_crash, __VA_ARGS__); }
/* defines to be used below */
#define OBJ(a, n) __OBJ_HEAD(a, n) {