From: fennecdjay Date: Sun, 23 Jun 2019 12:08:43 +0000 (+0200) Subject: :art: Improve gack X-Git-Tag: nightly~2401 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=7430e3920436989d98b4ba280ea39a842063c0a9;p=gwion.git :art: Improve gack --- 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);