summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/rtemsobjectsetname.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/rtemsobjectsetname.c')
-rw-r--r--cpukit/rtems/src/rtemsobjectsetname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/rtems/src/rtemsobjectsetname.c b/cpukit/rtems/src/rtemsobjectsetname.c
index 2f61231031..7e35225189 100644
--- a/cpukit/rtems/src/rtemsobjectsetname.c
+++ b/cpukit/rtems/src/rtemsobjectsetname.c
@@ -54,7 +54,7 @@ rtems_status_code rtems_object_set_name(
case OBJECTS_LOCAL:
_Objects_Set_name( information, the_object, name );
- _Thread_Enable_dispatch();
+ _Objects_Put( the_object );
return RTEMS_SUCCESSFUL;
#if defined(RTEMS_MULTIPROCESSING)