semunlink.c: Add missing _Objects_Allocator_unlock()

updates 2319.

Signed-off-by: Daniel Krueger <daniel.krueger@systec-electronic.com>
This commit is contained in:
Daniel Krueger
2015-04-14 12:12:40 -05:00
committed by Joel Sherrill
parent fc0756e8d9
commit 5049dca6c5
+1
View File
@@ -46,6 +46,7 @@ int sem_unlink(
status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id, &name_len );
if ( status != 0 ) {
_Thread_Enable_dispatch();
_Objects_Allocator_unlock();
rtems_set_errno_and_return_minus_one( status );
}