View | Details | Raw Unified | Return to bug 19048 | Differences between
and this patch

Collapse All | Expand All

(-)a/malloc/arena.c (-3 / +11 lines)
Lines 934-942 arena_thread_freeres (void) Link Here
934
934
935
  if (a != NULL)
935
  if (a != NULL)
936
    {
936
    {
937
      mstate b;
937
      (void) mutex_lock (&list_lock);
938
      (void) mutex_lock (&list_lock);
938
      a->next_free = free_list;
939
      /* Insert "a" last in free_list.  */
939
      free_list = a;
940
      if (free_list != NULL)
941
	{
942
	  for (b = free_list; b->next_free != NULL; b = b->next_free)
943
	    ;
944
	  b->next_free = a;
945
	}
946
      else
947
	free_list = a;
948
      a->next_free = NULL;
940
      (void) mutex_unlock (&list_lock);
949
      (void) mutex_unlock (&list_lock);
941
    }
950
    }
942
}
951
}
943
- 

Return to bug 19048