CONTRACTL_END;
// Get the command line.
- LPCWSTR osCommandLine = GetCommandLineW();
+ LPCWSTR osCommandLine = GetCommandLineW();
#ifndef FEATURE_PAL
// On Windows, osCommandLine contains the executable and all arguments.
#endif
}
-// Release any memory that we allocated for the managed command line
-void ReleaseManagedCommandLine()
-{
- LIMITED_METHOD_CONTRACT;
-
-#ifdef FEATURE_PAL
- delete[] s_pCommandLine;
- s_pCommandLine = NULL;
-#endif
-}
-
static void ProfileDataAllocateScenarioInfo(ProfileEmitter * pEmitter, LPCSTR scopeName, GUID* pMvid)
{
CONTRACTL
LPCWSTR GetManagedCommandLine();
// Save the command line for the current process.
void SaveManagedCommandLine(LPCWSTR pwzAssemblyPath, int argc, LPCWSTR *argv);
-// Release any memory that we allocated for the managed command line
-void ReleaseManagedCommandLine();
#endif // !CEELOAD_H_
GCPROTECT_END();
- // When running under FEATURE_PAL, the SetCommandLineArgs call above will
- // call SaveManagedCommandLine which will allocate memory using new WCHAR[]
- // We can release this memory now.
- //
- ReleaseManagedCommandLine();
}
UNINSTALL_UNWIND_AND_CONTINUE_HANDLER;