VirtualBox

Changeset 61970 in vbox for trunk/src


Ignore:
Timestamp:
Jun 30, 2016 6:28:06 PM (8 years ago)
Author:
vboxsync
Message:

Runtime/xarvfs.cpp: Fix another handle leak for files in a XAR stream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/zip/xarvfs.cpp

    r61966 r61970  
    10331033
    10341034/**
     1035 * @interface_method_impl{RTVFSOBJOPS,pfnClose}
     1036 */
     1037static DECLCALLBACK(int) rtZipXarFssFile_Close(void *pvThis)
     1038{
     1039    PRTZIPXARFILE pThis = (PRTZIPXARFILE)pvThis;
     1040
     1041    RTVfsFileRelease(pThis->hVfsFile);
     1042    pThis->hVfsFile = NIL_RTVFSFILE;
     1043
     1044    return rtZipXarFssIos_Close(&pThis->Ios);
     1045}
     1046
     1047
     1048/**
    10351049 * @interface_method_impl{RTVFSOBJSETOPS,pfnMode}
    10361050 */
     
    11301144            RTVFSOBJTYPE_FILE,
    11311145            "XarFsStream::File",
    1132             rtZipXarFssIos_Close,
     1146            rtZipXarFssFile_Close,
    11331147            rtZipXarFssIos_QueryInfo,
    11341148            RTVFSOBJOPS_VERSION
     
    11731187    pThis->hVfsIosDecompressor = NIL_RTVFSIOSTREAM;
    11741188
    1175     int rc = RTVfsIoStrmRelease(pThis->hVfsIosRaw);
     1189    RTVfsIoStrmRelease(pThis->hVfsIosRaw);
    11761190    pThis->hVfsIosRaw = NIL_RTVFSIOSTREAM;
    11771191    pThis->pIosRaw = NULL;
    11781192
    1179     return rc;
     1193    return VINF_SUCCESS;
    11801194}
    11811195
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