From b4125ba0c18a5a60da60c638bedff7f8b7c6a503 Mon Sep 17 00:00:00 2001 From: seyko Date: Fri, 22 Apr 2016 20:32:15 +0300 Subject: [PATCH] fix for the "Reduce allocations overhead" Now no trap when compiling tccboot --- tccpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tccpp.c b/tccpp.c index e1fabbb..d6ae6ef 100644 --- a/tccpp.c +++ b/tccpp.c @@ -242,7 +242,7 @@ tail_call: al->nb_total++; #endif return ret; - } else if (al->top && is_own) { + } else if (is_own) { al->nb_allocs--; ret = tal_realloc(*pal, 0, size); header = (((tal_header_t *)p) - 1);