Skip to content

Commit

Permalink
fix: logic 👍 (tf was i thinking here?)
Browse files Browse the repository at this point in the history
  • Loading branch information
javalsai committed Nov 1, 2024
1 parent 49e3ad5 commit 06fa419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 06fa419

Please sign in to comment.