We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69d5072 commit 6d4994fCopy full SHA for 6d4994f
mos-platform/common/c/malloc.cc
@@ -494,10 +494,9 @@ void *realloc(void *ptr, size_t size) {
494
TRACE("Not enough remainder, so size now %u\n", chunk->size());
495
} else {
496
TRACE("Inserting remainder of next chunk.\n");
497
- FreeChunk::insert(chunk->end(), next_size - grow)->prev_free = false;
+ FreeChunk::insert(chunk->end(), next_size - grow);
498
}
499
-
500
- assert(!chunk->free() && "newly reallocated chunk should not be free");
+ chunk->set_free(false);
501
return ptr;
502
503
0 commit comments