VirtualBox

Ignore:
Timestamp:
Feb 26, 2016 11:35:07 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105740
Message:

tstSSM: gcc asan fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstSSM.cpp

    r57358 r59847  
    633633     * Allocate and init the UVM structure.
    634634     */
    635     PUVM pUVM = (PUVM)RTMemAllocZ(sizeof(*pUVM));
     635    PUVM pUVM = (PUVM)RTMemPageAllocZ(sizeof(*pUVM));
    636636    AssertReturn(pUVM, 1);
    637637    pUVM->u32Magic = UVM_MAGIC;
     
    685685
    686686/**
     687 * Destroy the VM structure.
     688 *
     689 * @param   pVM     Pointer to the VM.
     690 *
     691 * @todo    Move this to VMM/VM since it's stuff done by several testcases.
     692 */
     693static void destroyFakeVM(PVM pVM)
     694{
     695    STAMR3TermUVM(pVM->pUVM);
     696    MMR3TermUVM(pVM->pUVM);
     697}
     698
     699
     700/**
    687701 *  Entry point.
    688702 */
     
    913927    }
    914928
     929    destroyFakeVM(pVM);
     930
    915931    /* delete */
    916932    RTFileDelete(pszFilename);
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