소스 검색

Block is always marked used as used, no need to mark it inside a split try.

Ioannis Koutras 13 년 전
부모
커밋
16ad57625b
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      src/custom_malloc.c

+ 0 - 2
src/custom_malloc.c

@@ -97,8 +97,6 @@ void * custom_ahmalloc(allocator_t* allocator, heap_t* heap, size_t size) {
 
         if(new_size > min_split_size) {
             split(allocator, heap, ptr, size);
-        } else {
-            mark_used(ptr);
         }
 #else
         mark_used(ptr);