VirtualBox

Changeset 77187 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Feb 6, 2019 7:58:40 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128676
Message:

MMHeap: Destroy the stats tree during destruction

File:
1 edited

Legend:

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

    r76553 r77187  
    8686
    8787/**
     88 * MM heap statistics tree destroy callback.
     89 */
     90static DECLCALLBACK(int) mmR3HeapStatTreeDestroy(PAVLULNODECORE pCore, void *pvParam)
     91{
     92    RT_NOREF(pvParam);
     93
     94    /* Don't bother deregistering the stat samples as they get destroyed by STAM. */
     95    RTMemFree(pCore);
     96    return VINF_SUCCESS;
     97}
     98
     99
     100/**
    88101 * Destroy a heap.
    89102 *
     
    112125     * Free the stat nodes.
    113126     */
    114     /** @todo free all nodes in a AVL tree. */
     127    RTAvlULDestroy(&pHeap->pStatTree, mmR3HeapStatTreeDestroy, NULL);
    115128    RTMemFree(pHeap);
    116129}
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