summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/heapfree.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/heapfree.c')
-rw-r--r--cpukit/score/src/heapfree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/score/src/heapfree.c b/cpukit/score/src/heapfree.c
index 04994c507b..ddc1634975 100644
--- a/cpukit/score/src/heapfree.c
+++ b/cpukit/score/src/heapfree.c
@@ -69,7 +69,7 @@
for ( current = pattern_begin; current != pattern_end; ++current ) {
if ( *current != HEAP_FREE_PATTERN ) {
- _Heap_Protection_block_error( heap, block );
+ _Heap_Protection_block_error( heap, block, HEAP_ERROR_FREE_PATTERN );
break;
}
}
@@ -89,7 +89,7 @@
} else if ( next == HEAP_PROTECTION_OBOLUS ) {
_Heap_Protection_check_free_block( heap, block );
} else {
- _Heap_Protection_block_error( heap, block );
+ _Heap_Protection_block_error( heap, block, HEAP_ERROR_DOUBLE_FREE );
}
return do_free;
@@ -134,7 +134,7 @@ bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
_Heap_Protection_block_check( heap, next_block );
if ( !_Heap_Is_prev_used( next_block ) ) {
- _Heap_Protection_block_error( heap, block );
+ _Heap_Protection_block_error( heap, block, HEAP_ERROR_BAD_USED_BLOCK );
return false;
}