VirtualBox

Changeset 77699 in vbox


Ignore:
Timestamp:
Mar 13, 2019 11:22:08 PM (6 years ago)
Author:
vboxsync
Message:

Storage/VHD,Parallels: Plug two small memory leaks when opening an image fails at a particular stage

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/Parallels.cpp

    r76553 r77699  
    264264        pRegion->cRegionBlocksOrBytes = pImage->cbSize;
    265265    }
     266    else
     267        parallelsFreeImage(pImage, false);
    266268
    267269    LogFlowFunc(("returns %Rrc\n", rc));
  • trunk/src/VBox/Storage/VHD.cpp

    r76589 r77699  
    796796                               pImage->cBlockAllocationTableEntries * sizeof(uint32_t));
    797797    if (RT_FAILURE(rc))
     798    {
     799        RTMemFree(pBlockAllocationTable);
    798800        return rc;
     801    }
    799802
    800803    /*
     
    871874
    872875    if (RT_FAILURE(rc))
     876    {
     877        vhdFreeImage(pImage, false);
    873878        return rc;
     879    }
    874880
    875881    switch (RT_BE2H_U32(vhdFooter.DiskType))
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