diff options
Diffstat (limited to 'cpukit/score/src/objectfree.c')
-rw-r--r-- | cpukit/score/src/objectfree.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/score/src/objectfree.c b/cpukit/score/src/objectfree.c index cc2fbac5a5..f1c0ee49b2 100644 --- a/cpukit/score/src/objectfree.c +++ b/cpukit/score/src/objectfree.c @@ -19,6 +19,7 @@ #endif #include <rtems/score/objectimpl.h> +#include <rtems/score/assert.h> #include <rtems/score/chainimpl.h> void _Objects_Free( @@ -28,7 +29,9 @@ void _Objects_Free( { uint32_t allocation_size = information->allocation_size; - _Chain_Append( &information->Inactive, &the_object->Node ); + _Assert( _Debug_Is_owner_of_allocator() ); + + _Chain_Append_unprotected( &information->Inactive, &the_object->Node ); if ( information->auto_extend ) { uint32_t block; |