VirtualBox

Changeset 104470 in vbox


Ignore:
Timestamp:
May 2, 2024 8:42:51 AM (13 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
162990
Message:

ValidationKit/bootsectors/VBoxBs3Obj2Hdr: Fix harmless file handle leaks, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/VBoxBs3Obj2Hdr.cpp

    r103656 r104470  
    357357            void  *pvFile;
    358358            if (!readfile(pszArg, &pvFile, &cbFile))
     359            {
     360                if (pOutput)
     361                    fclose(pOutput);
    359362                return RTEXITCODE_FAILURE;
     363            }
    360364
    361365            RTEXITCODE rcExit = ProcessObjectFile(pOutput, (uint8_t const *)pvFile, cbFile, pszArg);
     
    363367            free(pvFile);
    364368            if (rcExit != RTEXITCODE_SUCCESS)
     369            {
     370                if (pOutput)
     371                    fclose(pOutput);
    365372                return rcExit;
     373            }
    366374        }
    367375    }
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