VirtualBox

Changeset 100870 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 14, 2023 12:51:17 PM (16 months ago)
Author:
vboxsync
Message:

Devices/DrvIntNet,NetworkServices/VBoxIntNetSwitch: Plug a few memory leaks, ticketref:21752

Location:
trunk/src/VBox
Files:
3 edited

Legend:

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

    r98103 r100870  
    249249        xpc_dictionary_set_data(hObj, "req", pvArg, cbArg);
    250250        xpc_object_t hObjReply = xpc_connection_send_message_with_reply_sync(pThis->hXpcCon, hObj);
     251        xpc_release(hObj);
     252
    251253        uint64_t u64Rc = xpc_dictionary_get_uint64(hObjReply, "rc");
    252254        if (INTNET_R3_SVC_IS_VALID_RC(u64Rc))
  • trunk/src/VBox/NetworkServices/IntNetSwitch/VBoxIntNetSwitch.cpp

    r98103 r100870  
    434434        xpc_object_t hObjPoke = xpc_dictionary_create(NULL, NULL, 0);
    435435        xpc_connection_send_message(pSession->hXpcCon, hObjPoke);
     436        xpc_release(hObjPoke);
    436437    }
    437438    else
     
    508509                    xpc_dictionary_set_uint64(hObjReply, "rc", INTNET_R3_SVC_SET_RC(rc));
    509510                    xpc_connection_send_message(hCon, hObjReply);
     511                    xpc_release(hObjReply);
    510512                    return;
    511513                }
     
    570572                        xpc_object_t hObjPoke = xpc_dictionary_create(NULL, NULL, 0);
    571573                        xpc_connection_send_message(pSession->hXpcCon, hObjPoke);
     574                        xpc_release(hObjPoke);
    572575                    }
    573576                    return;
     
    587590                        xpc_object_t hObjPoke = xpc_dictionary_create(NULL, NULL, 0);
    588591                        xpc_connection_send_message(pSession->hXpcCon, hObjPoke);
     592                        xpc_release(hObjPoke);
    589593                    }
    590594                    cbReply = sizeof(INTNETIFABORTWAITREQ);
  • trunk/src/VBox/NetworkServices/NetLib/IntNetIf.cpp

    r98103 r100870  
    111111        xpc_dictionary_set_data(hObj, "req", pReqHdr, pReqHdr->cbReq);
    112112        xpc_object_t hObjReply = xpc_connection_send_message_with_reply_sync(pThis->hXpcCon, hObj);
     113        xpc_release(hObj);
     114
    113115        int rc = (int)xpc_dictionary_get_int64(hObjReply, "rc");
    114116
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