|
HRESULT |
|
SymReader::InitializeFromFile( |
|
const WCHAR* szFileName, |
|
const WCHAR* szsearchPath) |
This method calls WszCreateFile, WszCreateFileMapping and MapViewOfFile but never UnmapViewOfFile or CloseHandle. It looks like it will leak resources on every call.
Other methods in this file, such as SymReader::VerifyPEDebugInfo, cleanup all resources before they return.
runtime/src/coreclr/debug/ildbsymlib/symread.cpp
Lines 543 to 546 in 45fbba6
This method calls
WszCreateFile,WszCreateFileMappingandMapViewOfFilebut neverUnmapViewOfFileorCloseHandle. It looks like it will leak resources on every call.Other methods in this file, such as
SymReader::VerifyPEDebugInfo, cleanup all resources before they return.