Remove tracking of free state in freelist header since being in the list means it is also free
This commit is contained in:
parent
69d4683cc5
commit
39c331cd09
3 changed files with 1 additions and 11 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue