VirtualBox

Changeset 14855 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 1, 2008 1:28:58 PM (16 years ago)
Author:
vboxsync
Message:

#3162: Fixed a newly introduced memory leak. Added VDShutdown() to test cases.

Location:
trunk/src/VBox/Devices/Storage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VBoxHDD-new.cpp

    r14852 r14855  
    715715        if (pBackends[i]->hPlugin != NIL_RTLDRMOD)
    716716            RTLdrClose(pBackends[i]->hPlugin);
     717
     718    RTMemFree(pBackends);
    717719    return VINF_SUCCESS;
    718720}
  • trunk/src/VBox/Devices/Storage/testcase/tstVD-2.cpp

    r14780 r14855  
    150150    }
    151151
     152    rc = VDShutdown();
     153    if (RT_FAILURE(rc))
     154    {
     155        RTPrintf("tstVD-2: unloading backends failed! rc=%Rrc\n", rc);
     156        g_cErrors++;
     157    }
    152158    /*
    153159     * Summary
  • trunk/src/VBox/Devices/Storage/testcase/tstVD.cpp

    r14817 r14855  
    10601060    RTFileDelete("tmpVDRename-s003.vmdk");
    10611061
    1062     /*
     1062    rc = VDShutdown();
     1063    if (RT_FAILURE(rc))
     1064    {
     1065        RTPrintf("tstVD: unloading backends failed! rc=%Rrc\n", rc);
     1066        g_cErrors++;
     1067    }
     1068     /*
    10631069     * Summary
    10641070     */
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