[rtems commit] heap: Free all delayed blocks during extend
Sebastian Huber
sebh at rtems.org
Tue Jun 25 15:01:50 UTC 2013
Module: rtems
Branch: master
Commit: cc0cb7c4a837680685c8d2207f85c21152786efd
Changeset: http://git.rtems.org/rtems/commit/?id=cc0cb7c4a837680685c8d2207f85c21152786efd
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jun 25 11:11:40 2013 +0200
heap: Free all delayed blocks during extend
---
cpukit/score/src/heapextend.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/cpukit/score/src/heapextend.c b/cpukit/score/src/heapextend.c
index 83e0928..aaaabf4 100644
--- a/cpukit/score/src/heapextend.c
+++ b/cpukit/score/src/heapextend.c
@@ -40,6 +40,7 @@ static void _Heap_Free_block( Heap_Control *heap, Heap_Block *block )
* areas are consumed first.
*/
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block ) );
+ _Heap_Protection_free_all_delayed_blocks( heap );
first_free = _Heap_Free_list_first( heap );
_Heap_Free_list_remove( first_free );
_Heap_Free_list_insert_before( _Heap_Free_list_tail( heap ), first_free );
More information about the vc
mailing list