VirtualBox

Changeset 32678 in vbox


Ignore:
Timestamp:
Sep 21, 2010 5:14:02 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66093
Message:

Devices/Serial, Devices/Parallel: minor fix (free alloc'd string)

Location:
trunk/src/VBox/Devices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Parallel/DrvHostParallel.cpp

    r28800 r32678  
    277277        AssertRC(rc);
    278278        pThis->FileDevice = NIL_RTFILE;
     279    }
     280    if (pThis->pszDevicePath)
     281    {
     282        MMR3HeapFree(pThis->pszDevicePath);
     283        pThis->pszDevicePath = NULL;
    279284    }
    280285}
  • trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp

    r28800 r32678  
    12741274
    12751275#endif
     1276
     1277    if (pThis->pszDevicePath)
     1278    {
     1279        MMR3HeapFree(pThis->pszDevicePath);
     1280        pThis->pszDevicePath = NULL;
     1281    }
    12761282}
    12771283
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette