VirtualBox

Changeset 65824 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 20, 2017 7:42:50 PM (8 years ago)
Author:
vboxsync
Message:

IEM: free stats memory on termination

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/IEMR3.cpp

    r64696 r65824  
    179179{
    180180    NOREF(pVM);
     181#if defined(VBOX_WITH_STATISTICS) && !defined(DOXYGEN_RUNNING)
     182    for (VMCPUID idCpu = 0; idCpu < pVM->cCpus; idCpu++)
     183    {
     184        PVMCPU pVCpu = &pVM->aCpus[idCpu];
     185        MMR3HeapFree(pVCpu->iem.s.pStatsR3);
     186        pVCpu->iem.s.pStatsR3 = NULL;
     187    }
     188#endif
    181189    return VINF_SUCCESS;
    182190}
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