VirtualBox

Ignore:
Timestamp:
Dec 7, 2017 11:17:14 AM (7 years ago)
Author:
vboxsync
Message:

iprt/RTLs.cpp: Fixed two leaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/tools/RTLs.cpp

    r69835 r69972  
    12781278                else
    12791279                    rcExit = RTMsgErrorExitFailure("Too deep recursion: %s%c%s", pszPath, RTPATH_SLASH, pEntry->szName);
     1280                RTVfsDirRelease(hSubDir);
    12801281            }
    12811282            else
     
    15061507    RTEXITCODE      rcExit      = RTEXITCODE_SUCCESS;
    15071508    unsigned        cProcessed  = 0;
    1508     RTVFSIOSTREAM   hVfsOutput  = NIL_RTVFSIOSTREAM;
    1509     int rc = RTVfsIoStrmFromStdHandle(RTHANDLESTD_OUTPUT, RTFILE_O_WRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE,
    1510                                       true /*fLeaveOpen*/, &hVfsOutput);
    1511     if (RT_FAILURE(rc))
    1512         return RTMsgErrorExitFailure("RTVfsIoStrmFromStdHandle: %Rrc", rc);
    1513 
    1514     RTGETOPTSTATE GetState;
    1515     rc = RTGetOptInit(&GetState, cArgs, papszArgs, s_aOptions, RT_ELEMENTS(s_aOptions), 1,
    1516                       RTGETOPTINIT_FLAGS_OPTS_FIRST);
     1509    RTGETOPTSTATE   GetState;
     1510    int rc = RTGetOptInit(&GetState, cArgs, papszArgs, s_aOptions, RT_ELEMENTS(s_aOptions), 1,
     1511                          RTGETOPTINIT_FLAGS_OPTS_FIRST);
    15171512    if (RT_FAILURE(rc))
    15181513        return RTMsgErrorExit(RTEXITCODE_SYNTAX, "RTGetOptInit: %Rrc", rc);
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