mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
Merge pull request #17323 from maribu/tests/malloc
tests/malloc: fix counting bugs
This commit is contained in:
commit
6475609440
@ -84,7 +84,7 @@ static void free_memory(struct node *head)
|
||||
|
||||
while (head) {
|
||||
if (head->ptr) {
|
||||
if (total > CHUNK_SIZE) {
|
||||
if (total >= CHUNK_SIZE) {
|
||||
total -= CHUNK_SIZE;
|
||||
freed++;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user