summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mutexdestroy.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/mutexdestroy.c')
-rw-r--r--cpukit/posix/src/mutexdestroy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/mutexdestroy.c b/cpukit/posix/src/mutexdestroy.c
index f733ce714c..27ebde0b97 100644
--- a/cpukit/posix/src/mutexdestroy.c
+++ b/cpukit/posix/src/mutexdestroy.c
@@ -49,7 +49,7 @@ int pthread_mutex_destroy(
*/
if ( _CORE_mutex_Is_locked( &the_mutex->Mutex ) ) {
- _Thread_Enable_dispatch();
+ _Objects_Put( &the_mutex->Object );
return EBUSY;
}
@@ -58,7 +58,7 @@ int pthread_mutex_destroy(
_CORE_mutex_Flush( &the_mutex->Mutex, NULL, EINVAL );
_POSIX_Mutex_Free( the_mutex );
- _Thread_Enable_dispatch();
+ _Objects_Put( &the_mutex->Object );
return 0;
#if defined(RTEMS_MULTIPROCESSING)