VirtualBox

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


Ignore:
Timestamp:
Apr 23, 2008 12:46:07 PM (17 years ago)
Author:
vboxsync
Message:

Don't leak memory.

File:
1 edited

Legend:

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

    r8307 r8326  
    266266int rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, RTR0PROCESS R0Process)
    267267{
     268    AssertReturn(R0Process == RTR0ProcHandleSelf(), VERR_INVALID_PARAMETER);
     269
    268270    /* Create the locking object */
    269271    PRTR0MEMOBJSOLARIS pMemSolaris = (PRTR0MEMOBJSOLARIS)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_LOCK, (void *)R3Ptr, cb);
     
    271273        return VERR_NO_MEMORY;
    272274
    273     AssertReturn(R0Process == RTR0ProcHandleSelf(), VERR_INVALID_PARAMETER);
    274275    proc_t *userproc = (proc_t *)R0Process;
    275276
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