VirtualBox

Changeset 65812 in vbox for trunk/src/VBox/Storage


Ignore:
Timestamp:
Feb 20, 2017 12:18:07 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
113547
Message:

vbox-img: fixed 2 tiny memory leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/testcase/vbox-img.cpp

    r62729 r65812  
    10981098    /* Open the image */
    10991099    rc = VDOpen(pDisk, pszFormat, pszFilename, VD_OPEN_FLAGS_INFO | VD_OPEN_FLAGS_READONLY, NULL);
     1100    RTStrFree(pszFormat);
    11001101    if (RT_FAILURE(rc))
    11011102        return errorRuntime("Error while opening the image: %Rrf (%Rrc)\n", rc, rc);
     
    12571258    /* Open the image */
    12581259    rc = VDOpen(pDisk, pszFormat, pszFilename, VD_OPEN_FLAGS_NORMAL, NULL);
     1260    RTStrFree(pszFormat);
    12591261    if (RT_FAILURE(rc))
    12601262        return errorRuntime("Error while opening the image: %Rrf (%Rrc)\n", rc, rc);
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