Skip to content

Memory leak when parsing. #43

@SLUCHABLUB

Description

@SLUCHABLUB

Testing my project with the test allocator I get a reported memory leak originating from this line: (root.zig:143)

self.error_info = ErrorInfo{ .struct_mapping = try self.alloc.dupe([]const u8, mapping_ctx.field_path.items) }; // i suspect this might leak memory (the outer array is copied, but not inner ones). But it doesn't seem to leak. Strange.

I can try to create a minimal example if you'd like.

Version Info

  • zig version: 0.15.2
  • zig-toml version: last-zig-0.14.1 (Commit d65ed60)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions