Skip to content

Memory leaks on !storage.ReadFile fail cases #47

@Demorome

Description

@Demorome

There are multiple cases, like at

if (!storage.ReadFile(path, span))
, where NativeMemory.Alloc was called earlier but an early-return from if (!storage.ReadFile(path, span)) doesn't call NativeMemory.Free.

Not a big deal, since this only happens if a file failed to load.

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