forked from Imagelibrary/rtems
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user