VirtualBox

Changeset 24580 in vbox for trunk/src


Ignore:
Timestamp:
Nov 11, 2009 2:29:17 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54715
Message:

PDMLdr.cpp: Call VMSetError before freeing the filename used in the message formatting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMLdr.cpp

    r20864 r24580  
    529529        AssertRC(rc2);
    530530    }
     531
     532    /* Don't consider VERR_PDM_MODULE_NAME_CLASH and VERR_NO_MEMORY above as these are very unlikely. */
     533    if (RT_FAILURE(rc))
     534        rc = VMSetError(pVM, rc, RT_SRC_POS, N_("Cannot load GC module %s"), pszFilename);
     535
    531536    RTMemFree(pModule);
    532537    RTMemTmpFree(pszFile);
    533 
    534     /* Don't consider VERR_PDM_MODULE_NAME_CLASH and VERR_NO_MEMORY above as these are very unlikely. */
    535     if (RT_FAILURE(rc))
    536         return VMSetError(pVM, rc, RT_SRC_POS, N_("Cannot load GC module %s"), pszFilename);
    537538    return rc;
    538539}
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