rtems: Fix partitions with RTEMS_MULIPROCESSING

Replace call to removed _Partition_Free() with a call to _Objects_Free().
This commit is contained in:
Sebastian Huber
2021-08-31 13:11:23 +02:00
parent b0f13f3778
commit a8235fe728

View File

@@ -128,7 +128,7 @@ rtems_status_code rtems_partition_create(
if ( _Attributes_Is_global( attribute_set ) &&
!( _Objects_MP_Allocate_and_open( &_Partition_Information, name,
the_partition->Object.id, false ) ) ) {
_Partition_Free( the_partition );
_Objects_Free( &_Partition_Information, &the_partition->Object );
_Objects_Allocator_unlock();
return RTEMS_TOO_MANY;
}