jkotas - We are intentionally not doing any cleanup that is just releasing memory.
We depend on the OS to take care of releasing the memory.
Commit migrated from https://github.com/dotnet/coreclr/commit/
663ce255b2d236d1b8075f635a9d5b0d20b45c7a
#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_
DiagnosticServer::Shutdown();
#endif // FEATURE_PERFTRACING
- // 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();
-
#if defined(FEATURE_COMINTEROP)
// Get the current thread.
Thread * pThisThread = GetThread();