VirtualBox

Changeset 72613 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Jun 19, 2018 1:16:32 PM (7 years ago)
Author:
vboxsync
Message:

IPRT: Call lsan_ignore_object() if must-leak or may-leak tags are use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/lockvalidator.cpp

    r72602 r72613  
    10461046    size_t const       cbFile   = pSrcPos->pszFile ? strlen(pSrcPos->pszFile) + 1 : 0;
    10471047    size_t const     cbFunction = pSrcPos->pszFile ? strlen(pSrcPos->pszFunction) + 1 : 0;
    1048     RTLOCKVALCLASSINT *pThis    = (RTLOCKVALCLASSINT *)RTMemAllocVar(sizeof(*pThis) + cbFile + cbFunction + cbName);
     1048    RTLOCKVALCLASSINT *pThis    = (RTLOCKVALCLASSINT *)RTMemAllocVarTag(sizeof(*pThis) + cbFile + cbFunction + cbName,
     1049                                                                        "may-leak:RTLockValidatorClassCreateExV");
    10491050    if (!pThis)
    10501051        return VERR_NO_MEMORY;
     
    10971098#endif
    10981099
    1099 #ifdef VBOX_WITH_GCC_SANITIZER
    1100     __lsan_ignore_object(pThis);
    1101 #endif
    11021100    *phClass = pThis;
    11031101    return VINF_SUCCESS;
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