summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/partcreate.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/partcreate.c')
-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;
}