From 7430e3920436989d98b4ba280ea39a842063c0a9 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 23 Jun 2019 14:08:43 +0200 Subject: [PATCH] :art: Improve gack --- src/lib/gack.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/gack.c b/src/lib/gack.c index 775a0a09..2bf97e84 100644 --- a/src/lib/gack.c +++ b/src/lib/gack.c @@ -13,9 +13,7 @@ static void print_type(const Type type) { const m_bool is_func = isa(type, t_function) > 0 && isa(type, t_fptr) < 0; - const m_str name = is_func ? strdup("@function") : strdup(type->name); - gw_out("(%s) ", name); - xfree(name); + gw_out("(%s) ", is_func ? "@function" : type->name); if(GET_FLAG(type, typedef)) { gw_out(" aka "); print_type(type->e->parent); -- 2.43.0