From 333a1aee2bc00628bd4ac7a364797cb5e7ad92ba Mon Sep 17 00:00:00 2001 From: alessandronardin Date: Sat, 14 Sep 2024 11:36:24 +0200 Subject: [PATCH] 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 --- cpukit/posix/src/aio_misc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpukit/posix/src/aio_misc.c b/cpukit/posix/src/aio_misc.c index 41d83b06d4..7536e650e3 100644 --- a/cpukit/posix/src/aio_misc.c +++ b/cpukit/posix/src/aio_misc.c @@ -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 );