Closing opened handles to avoid resource leak. (#51950)
authorArtem Kliatchkine <artem.kliatchkine@gmail.com>
Tue, 25 May 2021 16:11:50 +0000 (18:11 +0200)
committerGitHub <noreply@github.com>
Tue, 25 May 2021 16:11:50 +0000 (09:11 -0700)
commitc90debb5dc8ee85840bbef1a44b8502ab169f47b
tree5eeca816cfce95b2a9faa0de94dbdb25a4787bdc
parentccdc7e19675ac450b95c2e70422800f4297c5daf
Closing opened handles to avoid resource leak. (#51950)

SymReader::InitializeFromFile opens file handles which were not closed causing resource leaks on each call.

Fix #50422

Co-authored-by: Artem Kliatchkine <eldog@rambler.ru>
src/coreclr/debug/ildbsymlib/symread.cpp