Skip to content

Potential Memory Leak in StringExtensions.ToMD5Hash #158

@jgador

Description

@jgador

The MD5 instance created in the ToMD5Hash method is not disposed of, potentially leading to a memory leak.

MD5 md5 = System.Security.Cryptography.MD5.Create();

Suggested Fix: Use a using statement to ensure the MD5 instance is properly disposed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions