VirtualBox

Changeset 91686 in vbox for trunk


Ignore:
Timestamp:
Oct 12, 2021 9:58:25 AM (3 years ago)
Author:
vboxsync
Message:

VMM/PDM: Fix a small memory leak when destroying USB devices in PDMTerm()

File:
1 edited

Legend:

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

    r90981 r91686  
    800800        //SSMR3DeregisterUsb(pVM, pUsbIns, NULL, 0);
    801801        pdmR3ThreadDestroyUsb(pVM, pUsbIns);
     802
     803        if (pUsbIns->pszName)
     804        {
     805            RTStrFree(pUsbIns->pszName); /* See the RTStrDup() call in PDMUsb.cpp:pdmR3UsbCreateDevice. */
     806            pUsbIns->pszName = NULL;
     807        }
    802808    }
    803809
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