Remove tracking of free state in freelist header since being in the list means it is also free

This commit is contained in:
Imbus 2025-09-08 07:38:22 +02:00
parent 69d4683cc5
commit 39c331cd09
3 changed files with 1 additions and 11 deletions

View file

@ -51,7 +51,6 @@ int main() {
assert(fl_free(&fl, a) == EXIT_SUCCESS);
assert(fl_free(&fl, b) == EXIT_SUCCESS);
assert(fl_free(&fl, c) == EXIT_SUCCESS);
assert(fl_free(&fl, a) == EXIT_FAILURE); // Double free
printf("Available: %zu of %zu\n", fl_available(&fl), fl_capacity(&fl));