posix/aio: Free requests after handling

Requests in rtems_aio_handle were not being freed after they were handled
causing resource leaks. This commit adds the necessary free for the
requests after processing.

Closes #5175
This commit is contained in:
alessandronardin
2024-12-09 10:53:44 +01:00
parent 528095cd24
commit 1c9d74cfac

View File

@@ -704,6 +704,8 @@ static void *rtems_aio_handle( void *arg )
req->listcbp = NULL;
req->suspendcbp = NULL;
free(req);
} else {
/* If the fd chain is empty we unlock the fd chain and we lock
the queue chain, this will ensure that we have at most