Skip to content

C++ string formatting is leaking memory #28

Description

@sylveon

builderCpp.AppendLine($"wchar_t *buffer = new wchar_t[needed + 1];");

builderCpp.AppendLine($"wchar_t *buffer = new wchar_t[needed + 1];");

These two buffers are allocated, but never freed, leading to a memory leak

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions