VirtualBox

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


Ignore:
Timestamp:
Jul 23, 2013 4:37:59 PM (11 years ago)
Author:
vboxsync
Message:

Runtime/r0drv/solaris: Free the hook object if the owner thread has already died.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/threadctxhooks-r0drv-solaris.c

    r47352 r47354  
    260260        cRefs = 0;
    261261    }
     262    else if (!cRefs)
     263    {
     264        /*
     265         * The ring-0 thread for this hook object has already died. Free up the object as we have no more references.
     266         */
     267        Assert(pThis->hOwner != RTThreadNativeSelf());
     268        ASMAtomicWriteU32(&pThis->u32Magic, ~RTTHREADCTXINT_MAGIC);
     269        RTMemFree(pThis);
     270    }
    262271
    263272    return cRefs;
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