VirtualBox

Ignore:
Timestamp:
Apr 4, 2020 11:42:04 AM (5 years ago)
Author:
vboxsync
Message:

VMMDev: Use RTMemFreeZ. bugref:9698

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.cpp

    r82968 r83551  
    352352
    353353                if (pHostParm->type == VBOX_HGCM_SVC_PARM_PTR)
    354                     RTMemFree(pHostParm->u.pointer.addr);
     354                    RTMemFreeZ(pHostParm->u.pointer.addr, pHostParm->u.pointer.size);
    355355
    356356                if (   pGuestParm->enmType == VMMDevHGCMParmType_LinAddr_In
     
    15911591                VMMDevNotifyGuest(pDevIns, pThis, pThisCC, VMMDEV_EVENT_HGCM);
    15921592
    1593                 RTMemFree(pHeader);
     1593                RTMemFreeZ(pHeader, pCmd->cbRequest);
    15941594            }
    15951595            else
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