1
0
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:
Francisco 2021-12-03 12:01:49 +01:00 committed by GitHub
commit 6475609440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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++;
}