VirtualBox

Changeset 102797 in vbox for trunk


Ignore:
Timestamp:
Jan 9, 2024 3:01:16 PM (13 months ago)
Author:
vboxsync
Message:

Devices/DrvIntNet,NetworkServices/{VBoxIntNetSwitch,IntNetIf}: Plug a
few more memory leaks in VBoxIntNetSwitch which affect macOS hosts
configured to use 'Internal Networking'. ticketref:21752

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvIntNet.cpp

    r100870 r102797  
    323323        xpc_dictionary_set_data(hObj, "req", &GetBufferPtrsReq, sizeof(GetBufferPtrsReq));
    324324        xpc_object_t hObjReply = xpc_connection_send_message_with_reply_sync(pThis->hXpcCon, hObj);
     325        xpc_release(hObj);
     326
    325327        uint64_t u64Rc = xpc_dictionary_get_uint64(hObjReply, "rc");
    326328        if (INTNET_R3_SVC_IS_VALID_RC(u64Rc))
  • trunk/src/VBox/NetworkServices/IntNetSwitch/VBoxIntNetSwitch.cpp

    r100870 r102797  
    607607    xpc_dictionary_set_data(hObjReply, "reply", &ReqReply, cbReply);
    608608    xpc_connection_send_message(hCon, hObjReply);
     609    xpc_release(hObjReply);
    609610}
    610611
  • trunk/src/VBox/NetworkServices/NetLib/IntNetIf.cpp

    r100870 r102797  
    183183        xpc_dictionary_set_data(hObj, "req", &GetBufferPtrsReq, sizeof(GetBufferPtrsReq));
    184184        xpc_object_t hObjReply = xpc_connection_send_message_with_reply_sync(pThis->hXpcCon, hObj);
     185        xpc_release(hObj);
     186
    185187        rc = (int)xpc_dictionary_get_int64(hObjReply, "rc");
    186188        if (RT_SUCCESS(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