Skip to content

Segfault when passing in filepaths as CLI args #24

@bradcypert

Description

@bradcypert

In main.zig:

var files: std.ArrayList([]const u8) = .empty;
    defer {
        for (files.items) |file| allocator.free(file); // <--- Segfault here due to the string being an arg and not something allocated during collectSpecFiles
        files.deinit(allocator);
    }
    try collectSpecFiles(allocator, &files, res);

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