From: Oded Hanson Date: Tue, 8 Jan 2019 17:34:25 +0000 (+0200) Subject: Fixed potential memory leak (dotnet/coreclr#21872) X-Git-Tag: submit/tizen/20210909.063632~11030^2~2882 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=497ec31131730111d5b24d51a18a36161f219a94;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fixed potential memory leak (dotnet/coreclr#21872) Commit migrated from https://github.com/dotnet/coreclr/commit/d6bf5ed160e99b9a66087dcc8738f22a9a370121 --- diff --git a/src/coreclr/src/debug/di/rsmain.cpp b/src/coreclr/src/debug/di/rsmain.cpp index f2f9b79..887cc33 100644 --- a/src/coreclr/src/debug/di/rsmain.cpp +++ b/src/coreclr/src/debug/di/rsmain.cpp @@ -2118,6 +2118,7 @@ HRESULT Cordb::CreateObject(CorDebugInterfaceVersion iDebuggerVersion, DWORD pid cbMultiByte = WideCharToMultiByte(CP_ACP, 0, lpApplicationGroupId, -1, applicationGroupId, cbMultiByte, NULL, NULL); if (cbMultiByte == 0) { + delete [] applicationGroupId; return E_FAIL; } }