VirtualBox

Ignore:
Timestamp:
Jul 13, 2009 2:39:34 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
50006
Message:

semfastmutex-generic.cpp: fixed leak in error path. @todo about no-nesting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/semfastmutex-generic.cpp

    r21337 r21533  
    4949    int rc = RTCritSectInit(pCritSect);
    5050    if (RT_SUCCESS(rc))
     51    {
     52        /** @todo pCritSect->fFlags |= RTCRITSECT_FLAGS_NO_NESTING; */
    5153        *pMutexSem = (RTSEMFASTMUTEX)pCritSect;
     54    }
     55    else
     56        RTMemFree(pCritSect);
    5257    return rc;
    5358}
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