From f0211cd43dccce7839012104fdbfc9d5cc122bac Mon Sep 17 00:00:00 2001 From: Nikolas Garofil Date: Sun, 15 Nov 2009 23:45:33 +0100 Subject: [PATCH] fix invalid free in if_up --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index 637c28d..be3fb2a 100644 --- a/src/core.c +++ b/src/core.c @@ -1766,7 +1766,7 @@ void free_text_objects(struct text_object *root, int internal) break; #endif /* X11 */ } - if(obj->special_data) free(obj->special_data); + if(obj->type != OBJ_if_up && obj->special_data) free(obj->special_data); free(obj); } #undef data -- 1.7.9.5