VirtualBox

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


Ignore:
Timestamp:
Oct 1, 2020 8:42:35 PM (4 years ago)
Author:
vboxsync
Message:

IPRT/tstVector: Testcase leaks. bugref:9841

File:
1 edited

Legend:

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

    r82968 r86404  
    139139    RTTESTI_CHECK(ppvVal[1] == (void *)3);
    140140    RTTESTI_CHECK(ppvVal[2] == (void *)2);
     141
     142    RTMemFree(ppvVal);  /** @todo there is no delete vector thing. */
    141143}
    142144
     
    178180    RTTESTI_CHECK(ppvVal == tstDeleteBegin(&myVec));
    179181    RTTESTI_CHECK(ppvVal + 1 == tstDeleteEnd(&myVec));
     182
     183    ppvVal = tstDeleteDetach(&myVec); /** @todo no delete myVec */
     184    RTMemFree(ppvVal);
    180185}
    181186
     
    218223    RTTESTI_CHECK(ppvVal == tstDeleteValueBegin(&myVec));
    219224    RTTESTI_CHECK(ppvVal + 1 == tstDeleteValueEnd(&myVec));
     225
     226    ppvVal = tstDeleteValueDetach(&myVec); /** @todo no delete myVec */
     227    RTMemFree(ppvVal);
    220228}
    221229
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