VirtualBox

Ignore:
Timestamp:
Jul 21, 2009 12:27:03 PM (15 years ago)
Author:
vboxsync
Message:

Runtime: more cleanup in the error case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/s3.cpp

    r21337 r21743  
    910910    RTFileClose(hFile);
    911911
     912    /* If there was an error delete the newly created file */
     913    if (RT_FAILURE(rc))
     914        RTFileDelete(pszFileName);
     915
    912916    return rc;
    913917}
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