VirtualBox

Changeset 32675 in vbox


Ignore:
Timestamp:
Sep 21, 2010 4:58:00 PM (14 years ago)
Author:
vboxsync
Message:

Devices/BIOS: minor fix (free alloc'd strings)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevPcBios.cpp

    r31209 r32675  
    845845    }
    846846
     847    if (pThis->pszHDDevice)
     848    {
     849        MMR3HeapFree(pThis->pszHDDevice);
     850        pThis->pszHDDevice = NULL;
     851    }
     852
     853    if (pThis->pszFDDevice)
     854    {
     855        MMR3HeapFree(pThis->pszFDDevice);
     856        pThis->pszFDDevice = NULL;
     857    }
     858
     859    if (pThis->pszSataDevice)
     860    {
     861        MMR3HeapFree(pThis->pszSataDevice);
     862        pThis->pszSataDevice = NULL;
     863    }
     864
    847865    return VINF_SUCCESS;
    848866}
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