VirtualBox

Changeset 96471 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Aug 24, 2022 11:47:28 PM (2 years ago)
Author:
vboxsync
Message:

IPRT/nocrt: Don't assert in sized delete operators. bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/new-delete-generic.cpp

    r96407 r96471  
    7979void RT_NEW_DELETE_CDECL operator delete(void *pv, RT_NEW_DELETE_SIZE_T cb) RT_NEW_DELETE_NOTHROW
    8080{
    81     NOREF(cb);
    82     AssertMsgFailed(("cb ignored!\n"));
     81    RT_NOREF_PV(cb);
    8382    RTMemFree(pv);
    8483}
     
    119118void *RT_NEW_DELETE_CDECL operator new[](RT_NEW_DELETE_SIZE_T cb, void *pvPlacement) RT_NEW_DELETE_NOTHROW
    120119{
    121     RT_NOREF(cb);
     120    RT_NOREF_PV(cb);
    122121    return pvPlacement;
    123122}
     
    133132void RT_NEW_DELETE_CDECL operator delete[](void * pv, RT_NEW_DELETE_SIZE_T cb) RT_NEW_DELETE_NOTHROW
    134133{
    135     NOREF(cb);
    136     AssertMsgFailed(("cb ignored!\n"));
     134    RT_NOREF_PV(cb);
    137135    RTMemFree(pv);
    138136}
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