posix/aio_misc-c/rtems_aio_completed_list_op(): Path with no lock release.

Coverity CID 1619144

In rtems_aio_completed_list_op() memory was getting freed without releasing
a lock.

This commit should also solve coverity issues 1619145, 1619143 and 1619142
since they all seem to be generated by rtems_aio_completed_list_op().

Closes #5127
This commit is contained in:
alessandronardin
2024-09-14 11:36:24 +02:00
parent 29a0d99bfd
commit 333a1aee2b

View File

@@ -266,6 +266,7 @@ void rtems_aio_completed_list_op( listcb *listcbp )
);
break;
}
pthread_mutex_unlock( &listcbp->mutex );
free( listcbp );
} else {
pthread_mutex_unlock( &listcbp->mutex );