summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-31 13:11:23 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-31 13:13:15 +0200
commita8235fe7282d1124bc1caa56adde31e54953ccc0 (patch)
tree3768bfad29417f4dcf695d7b0db8792340c854a0 /cpukit/rtems/src
parentpsxtests/psxconfstr: Fix test case (diff)
downloadrtems-a8235fe7282d1124bc1caa56adde31e54953ccc0.tar.bz2
rtems: Fix partitions with RTEMS_MULIPROCESSING
Replace call to removed _Partition_Free() with a call to _Objects_Free().
Diffstat (limited to 'cpukit/rtems/src')
-rw-r--r--cpukit/rtems/src/partcreate.c2
1 files changed, 1 insertions, 1 deletions
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;
}