From 4ed67af97227dc887c723b183f34da15405f013a Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Tue, 20 Aug 2024 13:32:53 +0800 Subject: [PATCH] ... --- src/interpreter/typeinfo.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/interpreter/typeinfo.c b/src/interpreter/typeinfo.c index f9dac167..231a932b 100644 --- a/src/interpreter/typeinfo.c +++ b/src/interpreter/typeinfo.c @@ -3,16 +3,13 @@ #define CHUNK_SIZE 128 #define LOG2_CHUNK_SIZE 7 -static py_TypeInfo firstChunk[CHUNK_SIZE]; - void TypeList__ctor(TypeList* self) { self->length = 0; memset(self->chunks, 0, sizeof(self->chunks)); - self->chunks[0] = firstChunk; } void TypeList__dtor(TypeList* self) { - for (int i = 1; i < self->length; i++) { + for (int i = 0; i < self->length; i++) { if(self->chunks[i]) free(self->chunks[i]); } }