aboutsummaryrefslogtreecommitdiff
path: root/tccpp.c
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2016-04-22 20:32:15 +0300
committerseyko <seyko2@gmail.com>2016-04-22 20:32:15 +0300
commitb4125ba0c18a5a60da60c638bedff7f8b7c6a503 (patch)
tree3257c7cb8dd7b22a9999775cf5e549456c964a8e /tccpp.c
parent1f49441a27da312f75feb53db14c4e025f7eb7a2 (diff)
downloadtinycc-b4125ba0c18a5a60da60c638bedff7f8b7c6a503.tar.gz
tinycc-b4125ba0c18a5a60da60c638bedff7f8b7c6a503.tar.bz2
fix for the "Reduce allocations overhead"
Now no trap when compiling tccboot
Diffstat (limited to 'tccpp.c')
-rw-r--r--tccpp.c2
1 files changed, 1 insertions, 1 deletions
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);