VirtualBox

Changeset 89632 in vbox


Ignore:
Timestamp:
Jun 11, 2021 3:43:44 PM (3 years ago)
Author:
vboxsync
Message:

Host USB timer: attempt to fix leak when setting USB timer name, ​bugref:10021.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMUsb.cpp

    r89437 r89632  
    18331833    /* Try to use unique names for USB timers in order not to confuse STAM (see xtracker#10021). */
    18341834    RTStrPrintf(szName, sizeof(szName), "%s[%u:%s]", pszDesc, pUsbIns->iInstance, pUsbIns->Internal.s.pUsbDev->pReg->szName);
    1835     pszDesc = szName;
    1836 
    1837     int rc = TMR3TimerCreateUsb(pVM, pUsbIns, enmClock, pfnCallback, pvUser, fFlags, pszDesc, phTimer);
     1835
     1836    int rc = TMR3TimerCreateUsb(pVM, pUsbIns, enmClock, pfnCallback, pvUser, fFlags, szName, phTimer);
    18381837
    18391838    LogFlow(("pdmR3UsbHlp_TMTimerCreate: caller='%s'/%d: returns %Rrc *phTimer=%p\n", pUsbIns->pReg->szName, pUsbIns->iInstance, rc, *phTimer));
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