VirtualBox

Changeset 102911 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Jan 17, 2024 10:14:49 AM (15 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161137
Message:

HostServices/tstClipboardServiceHost: Fix memory leak in testcase causing testcase failures with ASAN enabled builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/HostServices/SharedClipboard/testcase/tstClipboardServiceHost.cpp

    r100370 r102911  
    102102    u32Mode = ShClSvcGetMode();
    103103    RTTESTI_CHECK_MSG(u32Mode == VBOX_SHCL_MODE_OFF, ("u32Mode=%u\n", (unsigned) u32Mode));
    104     table.pfnUnload(NULL);
     104
     105    rc = table.pfnUnload(NULL);
     106    RTTESTI_CHECK_RC(rc, VINF_SUCCESS);
    105107}
    106108
     
    133135    HGCMSvcSetU32(&parms[0], VBOX_SHCL_TRANSFER_MODE_F_NONE);
    134136    rc = table.pfnHostCall(NULL, VBOX_SHCL_HOST_FN_SET_TRANSFER_MODE, 1, parms);
     137    RTTESTI_CHECK_RC(rc, VINF_SUCCESS);
     138
     139    rc = table.pfnUnload(NULL);
    135140    RTTESTI_CHECK_RC(rc, VINF_SUCCESS);
    136141}
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