VirtualBox

Changeset 83551 in vbox for trunk/src/VBox/Devices/VMMDev


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

VMMDev: Use RTMemFreeZ. bugref:9698

Location:
trunk/src/VBox/Devices/VMMDev
Files:
2 edited

Legend:

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

    r83142 r83551  
    30833083                { /* likely */ }
    30843084                else
    3085                     RTMemFree(pRequestHeaderFree);
     3085                    RTMemFreeZ(pRequestHeaderFree, RT_MAX(requestHeader.size, 512));
    30863086                return rcRet;
    30873087            }
  • 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