Registry Mirror
Skip to content

SymReader::InitializeFromFile opens a few handles but never closes them #50422

Closed

Description

@omajid

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.

Activity

  1. ghost added
    untriaged
    on Mar 30, 2021
  2. removed
    untriaged
    on Apr 2, 2021
  3. added this to the Future milestone on Apr 2, 2021
  4. added
    help wanted
    on Apr 2, 2021
  5. tommcdon commented on Apr 2, 2021

    @tommcdon
    Member

    @omajid thank you for the bug report! Feel free to send us a PR if you are interested in contributing a fix.

  6. added a commit that references this issue on Apr 27, 2021
    8b8452c
  7. ghost added
    in-pr
    on Apr 27, 2021
  8. added a commit that references this issue on May 25, 2021
    c90debb
  9. ghost removed
    in-pr
    on May 25, 2021
  10. ghost locked as resolved and limited conversation to collaborators on Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Diagnostics-coreclrhelp wanted

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions