VirtualBox

Changeset 45366 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Apr 5, 2013 12:36:26 PM (12 years ago)
Author:
vboxsync
Message:

tstHttp: slight re-order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstHttp.cpp

    r45343 r45366  
    211211                       "https://update.virtualbox.org/query.php?platform=LINUX_32BITS_UBUNTU_12_04&version=4.1.18",
    212212                       &pszBuf);
    213     RTHttpDestroy(hHttp);
    214213
    215214    if (RT_FAILURE(rc))
     
    221220        RTPrintf("Success!\n");
    222221    RTPrintf("Got: %s\n", pszBuf);
    223     RTMemFree(pszBuf);
     222    if (pszBuf)
     223    {
     224        RTMemFree(pszBuf);
     225        pszBuf = NULL;
     226    }
     227
     228    RTHttpDestroy(hHttp);
    224229
    225230//    RTFileDelete(CAFILE_NAME);
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