VirtualBox

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


Ignore:
Timestamp:
Aug 5, 2010 12:15:53 PM (14 years ago)
Author:
vboxsync
Message:

dbgas.cpp: Use the right malloc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/dbg/dbgas.cpp

    r28800 r31396  
    198198     */
    199199    size_t cchName = strlen(pszName);
    200     PRTDBGASINT pDbgAs = (PRTDBGASINT)RTMemAlloc(RT_OFFSETOF(RTDBGASINT, szName[cchName + 1]));
     200    PRTDBGASINT pDbgAs = (PRTDBGASINT)RTMemAllocVar(RT_OFFSETOF(RTDBGASINT, szName[cchName + 1]));
    201201    if (!pDbgAs)
    202202        return VERR_NO_MEMORY;
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