fix: logic 👍 (tf was i thinking here?)

This commit is contained in:
2024-11-01 13:25:38 +01:00
parent 49e3ad528f
commit 06fa419a6c

View File

@@ -94,7 +94,7 @@ int vec_push(struct Vector* vec, void* item) {
}
void vec_free(struct Vector* vec) {
for(; vec->length > 0; vec->length--)
while(vec->length > 0)
free(vec->pages[--vec->length]);
vec_clear(vec);