VirtualBox

Changeset 51683 in vbox for trunk


Ignore:
Timestamp:
Jun 21, 2014 9:22:22 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94458
Message:

Runtime/tarcmd: fixed a loop and a memory leak

File:
1 edited

Legend:

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

    r48780 r51683  
    163163static bool rtZipTarCmdIsNameInArray(const char *pszName, const char * const *papszNames, uint32_t *piName)
    164164{
    165     for (uint32_t iName = 0; papszNames[iName]; iName)
     165    for (uint32_t iName = 0; papszNames[iName]; iName++)
    166166        if (!strcmp(papszNames[iName], pszName))
    167167        {
     
    359359                rcExit = RTEXITCODE_FAILURE;
    360360            }
     361
     362        RTVfsFsStrmRelease(hVfsFssIn);
    361363    }
    362364    RTMemFree(pbmFound);
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