VirtualBox

Ignore:
Timestamp:
Sep 15, 2020 11:21:56 AM (4 years ago)
Author:
vboxsync
Message:

Runtime/common/ioqueue/ioqueue-aiofile-provider: Fix memory leak during destruction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/ioqueue/ioqueue-aiofile-provider.cpp

    r82968 r86127  
    129129
    130130    RTFileAioCtxDestroy(pThis->hAioCtx);
     131
     132    while (pThis->cReqsFree--)
     133    {
     134        RTFILEAIOREQ hReq = pThis->pahReqsFree[pThis->cReqsFree];
     135        RTFileAioReqDestroy(hReq);
     136        pThis->pahReqsFree[pThis->cReqsFree] = NULL;
     137    }
     138
    131139    RTMemFree(pThis->pahReqsFree);
    132140    RTMemFree(pThis->pahReqsToCommit);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette