From a8235fe7282d1124bc1caa56adde31e54953ccc0 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 31 Aug 2021 13:11:23 +0200 Subject: rtems: Fix partitions with RTEMS_MULIPROCESSING Replace call to removed _Partition_Free() with a call to _Objects_Free(). --- cpukit/rtems/src/partcreate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/rtems/src') diff --git a/cpukit/rtems/src/partcreate.c b/cpukit/rtems/src/partcreate.c index 61249749f3..002bc0ceb9 100644 --- a/cpukit/rtems/src/partcreate.c +++ b/cpukit/rtems/src/partcreate.c @@ -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; } -- cgit v1.2.3