Explorar o código

While coalescing, add new block to the free list if current + next is fine

Ioannis Koutras %!s(int64=13) %!d(string=hai) anos
pai
achega
01bf7322c4
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/freelist/coalesce.c

+ 1 - 0
src/freelist/coalesce.c

@@ -99,6 +99,7 @@ void coalesce(freelist_rb_t *raw_block, block_header_t *ptr) {
             raw_block->border_ptr = ptr;
         }
         set_size_and_free(raw_block, ptr, current_next_size);
+        add_block(raw_block, ptr);
         return;
     }