Преглед на файлове

Perform req_padding() before searching for a fixed list.

Ioannis Koutras преди 14 години
родител
ревизия
d4e695665a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      custom_malloc.c

+ 1 - 1
custom_malloc.c

@@ -20,7 +20,7 @@ void * custom_malloc(heap_t* heap, size_t size) {
     posix_lock(heap);
 #endif /* HAVE_LOCKS */
 
-    fixed_list_id = map_size_to_list(heap, size);
+    fixed_list_id = map_size_to_list(heap, req_padding(size));
 
     // If a fixed list is found, do a first fit
     if(fixed_list_id != -1) {