VirtualBox

Ignore:
Timestamp:
Dec 11, 2023 9:38:32 AM (14 months ago)
Author:
vboxsync
Message:

Shared Clipboard/Transfers: Fixed memory leaks in shClTransferHttpQueryInfo() and shClTransferHttpServerDestroyInternal(). bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers-http.cpp

    r102141 r102566  
    465465    {
    466466        char        *pszPath = RTUriParsedPath(pszUrl, &Parsed);
     467        AssertPtrReturn(pszPath, VERR_NO_MEMORY); /* Should be okay, as we succeeded RTUriParse() above. */
    467468        size_t const cchPath = strlen(pszPath);
    468469
     
    532533                ShClTransferObjOpenParmsDestroy(&openParms);
    533534            }
     535
     536            RTStrFree(pszPath);
     537            pszPath = NULL;
    534538        }
    535539        else
     
    590594            rc = rc2;
    591595    }
     596
     597    RTSemEventDestroy(pSrv->StatusEvent);
     598    pSrv->StatusEvent = NIL_RTSEMEVENT;
    592599
    593600    LogFlowFuncLeaveRC(rc);
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